High Performance Python Microservice Communication
summary
Compares REST vs gRPC with concrete claims and code: gRPC is six times faster and supports duplex streaming and HTTP/2 features like multiplexing and header compression. Shows protobuf message and Python workflow: protoc generates _pb2 files, use SerializeToString and FromString, demonstrates protobuf over HTTP/1 when frameworks lack HTTP/2, and a working server tested with Postman. Uses twisted + hyper for HTTP/2 and PyJWT for simple token auth, notes missing Swagger‑like tooling so sometimes rolling your own is required.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 0:45Things to Consider
- 1:22Rest
- 2:43GRPC
- 3:46HTTP II
- 5:02GRPC syntax
- 5:30GRPC example
- 6:22HTTP2 example
- 8:57JSON authentication
- 10:58Resources
- 11:22Example
related talks
24mPython & gRPC, the Conqueror of Microservices
46mgRPC vs REST: let the battle begin!
27mgRPC in Python. Build fast scalable APIs for your services
25mgRPC and What, Why, How?
46mIntroduction to gRPC
11m"RPC Frameworks Overview"
49mBuilding fast microservices with binary protocol - introduction to gRPC
01h 09mBuild a Highly Performant Interservice Communication with gRPC for ASP NET Core
