In this video, learn how to set up the needed endpoints in Express before building out the real logic.
- [Instructor] Now it's time to add a bit of logic … to service registry. … When designing services, I always start … with the actions a service should eventually perform. … In a REST based service, … those actions are represented by routes. … So let's sketch out the routes that we will need. … First we need a route the service can use … to register itself. … And the service should be characterized by a name, … a version, and a port it can be found in. … So, for that I'm opening server, service.js, … and somewhere here on there after line 13, … I start adding service, … and this should be a put request, htp put. … and the route should be /register … then we have argument servicename … and … next we have an argument … serviceversion … and the last argument is … serviceport … note the double columns here, … those are parameters that contain … dynamic route parameters. … Then we have … the regular callback … request response next … request response next … and in there for now we just … return next …
- 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.