From the course: Node.js: Microservices
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Producing orders - Node.js Tutorial
From the course: Node.js: Microservices
Producing orders
- [Instructor] I already mentioned that we have a fire and forget method that creates an order. You find it in the workspace, in shopper, server, routes, and it's in the cart route, because that is when things are ordered. And that's look at, there should be some route that is about buying, so here it is. And there you see at the very end, the order is compiled, and then we just await creating the order here in line 127. So, we just pass in the user ID, the user email, and the items, and we want to change this create method now so that it uses the queue and not anymore this HTTP API that we have. And for that, I open first this create method, follow this link, and then, of course, I also have to get the ANQP library, and for that I stop my shop application real quick and type npm install -s anqplib. Then I can start my application again, and on the very top of this file I will now add const anqp. So that's the Revit EQ…
Contents
-
-
-
-
-
-
-
-
-
(Locked)
What's your goal for this chapter?2m 27s
-
(Locked)
Chaos testing4m 18s
-
(Locked)
Adding caching to reduce load and bridge outages2m 40s
-
(Locked)
Using queues for decoupling1m 43s
-
(Locked)
Installing up RabbitMQ1m 24s
-
(Locked)
Setting up the order service3m 2s
-
(Locked)
Producing orders6m 47s
-
(Locked)
Consuming orders9m 3s
-
(Locked)
-