Circuit breakers are a very common building block in microservices. In this video, learn circuit breaker theory as well as open source implementations of them.
- [Instructor] We just saw that … our website loads indefinitely, … waiting for a response from a faulty service. … And this might take down the whole conference app. … So how can we make sure that the app keeps running … in such a scenario? … One way to solve that is a so-called circuit breaker. … Let's see how it works. … Circuit breakers work like an electrical circuit breaker. … First of all, they can be either closed, … this means that the circuit is interrupted. … Let's look at the respective sequence diagrams … to see what this means for our application. … In closed state, the circuit breaker will simply allow … requests to the server. … In open state, the circuit breaker will not try … to connect to the service … and will return back to the caller immediately. … Now the question is, … which events should change the state of the circuit breaker? … Let's look at the state machine behind it. … So we have a closed state and an open state, … and additionally, and differently to electrical circuits, …
- Setting up a service registry
- Registering and deregistering services
- Versioning and load balancing
- Adding the service logic
- Working with the circuit breaker
- Using queues
- Consuming and storing feedback
Skill Level Intermediate
Node.js: Debugging and Performance Tuningwith Jon Peck2h 44m Intermediate
1. Get started with Microservices
2. Creating a Service Registry
3. Splitting Up a Monolith into Microservices
4. Adding Fault Tolerance and Resilience
5. Using Queues with Node.js
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.