In this video, learn how to use RabbitMQ to queue feedback messages.
- [Instructor] We now want to implement a method … that sends messages that were posted … via the feedback forum … to RabbitMQ. … For that, I'd first have to install an … NPM module that can speak to RabbitMQ … and that's in qplib, so I run npm install, … dash dash save, amqplib, … and I open the feedback js file … in services on the conference app, … and then first I will bring in … the library const, … amqplib equals require, … amqplib. … Now we have to implement the function that adds … an entry because it was present like that in the old … feedback cast, so it takes a name, a title, and a message. … So now, I add async, … add entry, … name, title, message. … And now for the q I start with … defining how this q should be called, its feedback … and next I will … create the connection to this q by adding const conn, … equals await, amqplib, … dot connect. … And this is amqp on local host. … Next we have to … create the channel to this q … for that to add const ch, … equals await, conn, create channel …
- 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.