O'Reilly logo

TypeScript Microservices by Parth Ghiya

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What are we going to use?

In this section, we will look at all the following node modules and concepts in order to efficiently construct our gateway:

  • ES6 proxy: Generally speaking, a proxy server is one which acts as an intermediary server for requests coming in from clients. One of the most powerful and interesting features in ES6 was proxy. ES6 proxy acts as an intermediary among API consumers and objects in services. We usually create proxies when we want our own desired behavior whenever the properties of the underlying target object are accessed. To configure traps for your proxy which has control of the underlying target object we use handler functions.
  • NPM module dockerode: Its Node.js reactive module for Remote API for docker. It ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required