Designing and implementing API Gateways with Ocelot in .NET Core containers and microservices architectures

We’re currently evolving the .NET microservices guidance and eShopOnContainers reference application. One of the most important topics is about the API Gateway pattern, why it is interesting for many microservice-based applications but also, how you can implement it in a .NET Core based microservice application with a deployment based on Docker containers. Why should you…


Microsoft eBook gratuito en Español: “Microservicios .NET – Arquitectura para aplicaciones .NET contenerizadas” – Docker, .NET Core, Kubernetes, Service Fabric, Azure.

Las arquitecturas basadas en Microservicios están emergiendo actualmente como opciones apropiadas para aplicaciones distribuidas de misión crítica. En una arquitectura basada en microservicios, la aplicación se construye basada en una colección de servicios que deben ser desarrollados, probados, versionados y desplegados en producción, de forma independiente. En paralelo, las empresas actualmente están descubriendo como con…


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…


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…


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…


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….


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….


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” : 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…


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…


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…