Chapter 9

Async APIs for Eventing and Streaming

The key to safety lies in the encapsulation. The key to scalability lies in how messaging is actually done.

— Alan Kay

Images

Figure 9.1 The Design phase offers several options for API styles. This chapter covers asynchronous API design.

Most discussions that surround Web-based APIs center on synchronous request/response interaction styles common with REST-based, query-based, and remote procedure call (RPC)–based APIs. They are easy to understand and approachable for developers and non-developers with minimal experience working with HTTP.

Yet, synchronous APIs have their limitations. The API server ...

Get Principles of Web API Design: Delivering Value with APIs and Microservices 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.