O'Reilly logo

Hands-On Microservices with Node.js by Diogo Resende

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

Communicable

Usually, services communicate over HTTP using a REST-compliant API. This is not a pattern that you must follow, but it's something that comes naturally based on how common HTTP is nowadays, making it an obvious choice.

There are plenty of HTTP servers out there, making it easy to expose a non-HTTP service with minimum effort.

HTTP is also a mature communication transport layer. It's a stateless protocol, giving developers and operations many features, such as:

  • Caching commonly used and often updated resources
  • Proxying and routing requests
  • Securing communication over TLS

 

A complex application with several services and streams ...

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