27.7 Summary
This chapter has introduced some facets of a microservice architecture with Node.js. You’ve learned how to communicate both synchronously and asynchronously between services, how to package services in their own containers, and how to separate them from data storage so that they can be better scaled.
However, the options shown only represent the beginning of the implementation of such an application. The next steps you should take involve implementing service discovery, where you can register your services in a central location and, as a consumer of a service, request the address of such a service. One implementation for this is Consul; a Node.js client also exists for this service, which you can use in your application.
As you’ve ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access