From the course: Advanced Node.js: Scaling Applications

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Create an orchestration

Create an orchestration - Node.js Tutorial

From the course: Advanced Node.js: Scaling Applications

Start my 1-month free trial

Create an orchestration

- [Instructor] Let's take a look at how we can create an API orchestration layer. To orchestrate the process of making a reservation, so far we have two separate microservices. One for handling shows and another for handling reservations inside of the exercise files, within the start folder under chapter three, chapter three lesson four and looking at the show service we know that in order to make a reservation we have to make sure that the show has available seats and then we need to end a put request to this service to hold those seats. We also need to interact with the reservation service. The reservation service itself saves the name on each reservation as well as their count of tickets. If I take a look at this reservation service, reservations are being made through post request. So by sending a post request to the home route, we are actually making the reservation. We don't have any information within this function about the show service because the reservation service doesn't…

Contents