By now, the service does not contain any logic. In this video, learn how to split out the logic from the conference app into the speakers service.
- [Instructor] So far we have the scaffold … for our speaker service ready. … Now let's move over the application logic. … In the conference app, and I have it open already, … we have this one speakers class that contains all the logic. … So it's in server, services, speakers. … Naturally, and we already considered that … when creating the routes, … this should be pretty much everything … our service should provide us well. … So let's copy over this class from the conference app … so it will control c and on the conference app, … I now create a new folder, Lib. … I don't want to call this folder now services again, … because that would be very confusing. … So I'm calling it lib, … and now paste in the speakers js class file. … We see that this class expects a data file, … its argument in its constructor … and let's see where this comes from in the original app. … So head back to the conference app, … and there we see where this class is initiated, … and we see that here in index js … we pass in config data speakers. …
- 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.