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

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