Learn how to guard a synchronous microservice call using a circuit breaker library such as Hystrix to add resilience.
- [Instructor] Hi, and welcome back…to Advanced Cloud Native Go.…My name's Leander Reimer and I'm happy to be your host,…using circuit breakers for resilient communication.…So this is what we're going to look in this video.…First of all, we're going to implement synchronous calls…using a circuit breaker.…We do this by extending the example of the previous video.…Then, we're going to define some fallback behavior,…in case of service errors,…we're going to configure the circuit breaker,…and we're going to add a monitoring dashboard,…so we can see that the circuit breaker's actually working.…
As usual, we're going to fire up everything…using Docker Compose.…Now if you haven't heard of a circuit breaker before,…have a look at Hystrix from Netflix.…And this is how it works.…So what you do here is,…the circuit breaker monitors every call.…And on certain failures,…the circuit breaker will then decide,…after a certain threshold, to short-circuit,…and well, to not let through any calls anymore.…So make sure you have a look at the wiki on github.…
This course was created and produced by Packt Publishing. We are honored to host this training in our library.
- Cloud native application platforms
- Go frameworks and libraries for microservices
- Using Docker for containerization
- Using Kubernetes for orchestration
- Using Consul for microservice discovery and configuration
- Registration and lookup
- Implementing service discovery using Kubernetes
- Microservice communication patterns: Sync and async
- Using circuit breakers for resilient communication
- Implementing message queuing with Rabbitmq
- Using Apache Kafka for publish/subscribe