In this video, learn how to consume and store data from RabbitMQ.
- [Narrator] We just posted feedback to the queue. … Now let's consume it in the feedback service. … So open the feedback service and in there … I first start with npn installing amqplib here as well. … Save. … And then head over to service chest, … because I will implement this consumer right away here. … And I start with bringing in amqplib. … Constant amqplib equals require. … Amqplib. … And done down there after feedback and log … was instantiated. … I will now add const q … equals feedback, … so that's similar. … But we did before, we of course have to post … to the same queue. … And now I will use this regular promise syntax, … because we're not in a async function, … I also want to show you how this would look like. … Using promises and not async await so I add … emqplib, then I connect as before. … I connect it to amqp … local host. … And then I get the connection back … and on this connection … I call create channel. … And then I get channel … back on this channel … I call assert queue q. …
- 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.