Implementing Saga 002 : Message Broker

In the earlier part of this series, we created the building blocks of our microservice - the individual services. To recollect, we build 3 services, namely, Order Service, Inventory Service, and Payment Service. In this part, we will continue building our example Saga implementation. In previous post, we had created endpoints in Order Service to create an … Continue reading Implementing Saga 002 : Message Broker

Implementing Saga 001 : Building Services

In this series of post, we will build an example for Saga Pattern. We will be using the Choreography Pattern for the example. If you are interested to read more on Saga, please check out my article on Introduction to Saga Pattern. This example would use RabbitMq as the message broker. To demonstrate the pattern, let us consider the … Continue reading Implementing Saga 001 : Building Services

Circuit Breaker with Ocelot & Polly – Part 2

In the previous blog post on Circuit Breaker with Ocelot And Polly, we saw how we could use the Ocelot library's inbuilt support for Polly to build Circuit breakers for handling timeout errors from the downstream services. In this blog post, we will address, how we could trigger a circuit breaker when the downstream service returns … Continue reading Circuit Breaker with Ocelot & Polly – Part 2

Circuit Breaker with Ocelot & Polly – Part 1

One of the key features of Microservices is the resilience to failures. In this blog post, we will aim to implement Circuit Breaker Pattern in our API Gateway. We would be using the Quality of Service (QoS) functionality exposed by Ocelot. Internally, Ocelot uses Polly library to implement Circuit Breaker. Timeout Failures from Downstream services As the first step, … Continue reading Circuit Breaker with Ocelot & Polly – Part 1