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.

Test the orchestration layer

Test the orchestration layer - Node.js Tutorial

From the course: Advanced Node.js: Scaling Applications

Start my 1-month free trial

Test the orchestration layer

- [Instructor] So let's go ahead and start up our new set of microservices. So the first thing I wanna do is make sure that I get the dependencies for this sample that we have here within our exercise files, under the start folder for chapter three, chapter three, lesson two. So I'm gonna run NPM install, just to make sure we get all of our dependencies. And now I can start these services. So I'll run pm2 start show.js and we'll run this on two instances and then I'll run pm2 start reservations.js and I will also run that on two instances. And now we have a third service, so we're gonna pm2 start app.js and we'll also run that one on two instances. And it looks like I can't start the pm2 app.jss api.js, so pm2 start api.js and we'll also run that on two instances. There we go. So I'll clear out this clutter and then pm2 list, just so we can see our instances running. So now our slew of microservices includes reservations, shows, and an api orchestration layer. So what I wanna do is…

Contents