In this video, learn how to connect the speakers service with the registry to register itself.
- When building the service registry … we already created the routes that services can use … to register and register themself. … We will now add the respective calls … to the start up of the service. … Additionally, we will also send a heartbeat every … 20 seconds to make sure that … the registry doesn't remove the entry. … If you remember, … before during testing on the service registry, … we changed the time of interval in server … service registry just to 10 seconds. … Let's switch it now to 30 seconds. … Back at the speakers service, … for the outbound HTTP request, … we will use Axios, that's a popular HTTP library. … We insulate with npm install … dash dash save axios … and while this is running, … Let's think about where the application is started. … That happens on bin, run. … So, on top of this file, … I will now add const axios … equals require … axios … And if we scroll down, … we see that there is already an on listening method … where we could hook our service registration into. …
- 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.