Implementing background tasks in .NET Core 2.x webapps or microservices with IHostedService and the BackgroundService class

Background tasks and scheduled jobs are something you might need to implement, eventually, in a microservice based application or in any kind of application. The difference when using a microservices architecture is that you can implement a single microservice process/container for hosting these background tasks so you can scale it down/up as you need or…

0

Modernize, lift and shift, existing .NET apps with Windows Containers and Azure

************************** NOTE ************************ This blog post is a replica of the same blog post I just published at the official Microsoft .NET Blog, here: Modernize existing .NET apps with Windows Containers and Azure ******************************************************** As part of the series of posts announced at this initial blog post (.NET Application Architecture Guidance) that explores each of…

0

Best-in-class Microservices and Domain-Driven Design conference and workshops in the U.S.!! Explore DDD 2017 (Denver, September 19-22, 2017)

  Explore DDD 2017 is a brand-new Domain-Driven Design (DDD)-centric conference, September 19-22 2017 at the Grand Hyatt hotel, in downtown Denver, Colorado, USA. I’m not directly related to this conference, but I wanted to provide some support/awareness because this type of quality events is fundamental for the development and software architecture community. They will have keynotes from…

0

Free eBook/Guide on ‘.NET Microservices – Architecture for Containerized .NET Applications’

The microservices architecture is emerging as an important approach for distributed mission-critical applications. In a microservice-based architecture, the application is built on a collection of services that can be developed, tested, deployed, and versioned independently. In addition, enterprises are increasingly realizing cost savings, solving deployment problems, and improving DevOps and production operations by using containers….

38

Using Resilient Entity Framework Core Sql Connections and Transactions: Retries with Exponential Backoff

There are many possible approaches to implement retries logic with exponential backoff also depending on the context/protocol, etc. (Database connections, HTTP requests, etc.) Retries with exponential backoff is a technique that assumes failure by nature and attempts to retry the operation, with an exponentially increasing wait time, until a maximum retry count has been reached….

2

Using Domain Events within a .NET Core Microservice

This blog post is related to the previous blog post named “Domain Events vs. Integration Events in Domain-Driven Design and microservices architectures” : https://blogs.msdn.microsoft.com/cesardelatorre/2017/02/07/domain-events-vs-integration-events-in-domain-driven-design-and-microservices-architectures/ Since I’m writing content related to “Microservices architecture, Docker containers and .NET Core” (draft available here, at GitHub), I thought it would be good to publish blog posts with partial content…

4

Domain Events vs. Integration Events in Domain-Driven Design and microservices architectures

This blog post is about comparing several approaches of Domain Events vs. Integration Events patterns already published by the community. I might evolve this post depending on feedback and some implementations we’ll be doing in the short/medium term. So, feel free to discuss about it with comments at the end of this post. I’m open…

9

Comparing ASP.NET Core IoC container service lifetimes with Autofac IoC container instance scopes

In ASP.NET Core you can use the simple built-in IoC container or you can also plug any other more advanced IoC container like Autofac. When plugin an external container like Autofac, you can still use ASP.NET Core methods like services.AddTransient<> or services.AddSingleton<> or you can also use the more granular methods in Autofac based on…

0

Booting Windows 10 natively from a .VHDX drive file

This post is an update (using Windows 10 and a newer version of Convert-WindowsImage.ps1) of a similar post I had in my blog about booting natively from a .VHDX file: https://blogs.msdn.microsoft.com/cesardelatorre/2014/10/18/booting-windows-8-1-update-natively-from-a-vhdx-image/ I’m also publishing this for my own records and folks asking me about it, as it is not a super straight forward procedure.. This…

7

Generating Swagger description metadata from your ASP.NET Core Web APIs with Swashbuckle

What is Swagger Swagger is a very much used open source framework backed by a large ecosystem of tools that helps you design, build, document, and consume your RESTful APIs. It is probably becoming as the main standard for this domain (APIs description metadata). The heart of Swagger is the Swagger Specification (API description metadata…

0