A service should be able to unregister itself. In this video, learn how to implement and test the required methods and routes.
- [Instructor] In this video we will create … the functionality needed to let services remove themselves. … For instance, when they are stopped. … For that I open service registry … and there I have register method. … I now will add a unregistered method … and this again will get a name version and ip and port. … Next we also have to create this unique key … to find the service we want to delete or add … name plus version plus ip plus port. … And then all I have to do is delete this services key. … And I will return the key. … That is it already here. … Next I head over to service.js … and there I already have this delete route … and we can now … simply copy over everything we have in the register route … and replace the return statement with that. … Let's remove the next up there … because we don't need it anymore. … And we change register here to unregister. … Of course, we now also want to try that out. … For that, I open service registry JS again … and here on line 29, … I'll want to have a breakpoint. …
- 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.