6.3 RESTful services

Microservices may communicate synchronously or asynchronously, using different protocols for message organization and communication. I don’t have space to go into all of the possible protocols here, so I focus on one of the most commonly used approaches for service interaction—namely, the RESTful “protocol.”

Strictly speaking, there is no such thing as a RESTful protocol, as this approach has not been standardized. Rather, it is a set of conventions for service communication based on the HTTP Internet Protocol and the hierarchical representation of resources. RESTful services follow the REST (REpresentational State Transfer) architectural style and communicate using the HTTP protocol.

The REST architectural style is based ...

Get Engineering Software Products: An Introduction to Modern Software Engineering now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.