Skip to content

cloudstreet-dev/HTTP-Alternatives-for-APIs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP Alternatives for APIs

A survey of API communication protocols beyond HTTP — gRPC, MQTT, AMQP, ZeroMQ, Cap'n Proto RPC, WebSockets, SSE, and more.

Most API code is written without a protocol decision. Engineers reach for REST over HTTP because it is what they know, what the framework assumes, and what everyone else uses. That is a reasonable default — but it is still a choice, and like any invisible choice, it has costs.

This book surveys the alternatives: what they are, how they work, where they outperform REST, and where they do not.

Read Online

Published at https://cloudstreet-dev.github.io/HTTP-Alternatives-for-APIs/

Contents

  1. The Default We Never Questioned
  2. gRPC — HTTP/2 in a Convincing Costume
  3. WebSockets and SSE — When You Need the Server to Talk Back
  4. MQTT and the IoT World
  5. AMQP and Message Brokers
  6. ZeroMQ — Messaging Without a Broker
  7. Cap'n Proto RPC and the Binary Frontier
  8. Lesser-Known Contenders
  9. What Nobody Has Tried Yet
  10. How to Choose — A Decision Framework

Building Locally

Requires mdBook.

cargo install mdbook
mdbook serve

Acknowledgments

Thanks to Georgiy Treyvus, CloudStreet Product Manager, whose idea started this book.

About

Survey of API communication protocols beyond HTTP — gRPC, MQTT, AMQP, ZeroMQ, Cap'n Proto RPC, and more. Covers tradeoffs, pseudoalternatives, and how to choose.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors