Overview
This course aims to teach learners how to enable their (micro)services to communicate using Protocol Buffers with gRPC. The course covers the benefits of using protocol buffers, including defining API messages in the proto format, reusing them across different services, and enforcing a robust schema. By utilizing gRPC, learners can easily define API endpoints in the same proto format, ensuring compact binary serialization and backward compatibility. The course covers topics such as the advantages of Protocol Buffers over JSON, generating server and client code, implementing services, handling timeouts, and ensuring backward compatibility. The intended audience for this course includes developers working with microservices and interested in optimizing communication between services.
Syllabus
Intro
JSON advantages
Protocol Buffers?
Protocol Buffers example
Why protocol buffers
Response headers
Distributed objects
The 8 Fallacies of distributed computing
How does it work
Generate server code
Implementing the service
Service code
Client code (async)
Timeouts
Uniform timeout
Adaptive timeout
Deadline propagation
Cancellation
Backward compatibility
Success stories
Taught by
EuroPython Conference