In this video, learn how to extend your conference app to send outbound calls using the circuit breaker.
- [Instructor] In our speakers class down there, … we have this callService method … and right now it does not use the circuit breaker, … so we have to create a way to call a service … via a circuit breaker. … We could now build this into the Speakers.js class … but I decided to implement a callService method directly … in the CircuitBreaker. … For that I change in my CircuitBreaker class … and there I first simply copy, paste this call Service in. … Now we have to extend it a little bit. … Of course, to use the CircuitBreaker, … so add const endpoint … equals because I want to create some unique identifier … for the endpoint so that I can store this dates then … in this.states map with it, … so I add requestOptions … and there I take the method. … This is GET POST, it's the HTTP verb … and then I want to use the requestOptions. … I copy that URL because the method … and the endpoint pretty much uniquely … identifies an endpoint. … Let's remember that we have to call initState somewhere …
- 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.