Microservice communication is often RPC-based. JSON is not very well suited here. Binary protocols such as ProtoBuf are a much more efficient way to implement RPC.
- [Instructor] Hi and welcome back…to Advanced Cloud Native Go.…My name's Leander Reimer, and I'm happy to be your host.…Implement Sync RPC calls with Binary Protocols…like protocol buffers.…So in this video, we're going to take a look…at the following.…First of all, we write a service definition…and generate some code.…Next up, we'll write the server side implementation…of a microservice and implement the service side API.…Then, we'll write the client side code…and call the service remotely.…
And as usual, we will be using Docker Compose…to fire up everything and showcase that everything works.…So, a lot of ground to cover. Let's get started.…So let's open our integrated development environment.…So it all starts off with a file with the ending of proto.…So in here, what we need to do is define…the service definition of our remote procedure call service.…And this is a very simple text file.…So we use the syntax proto 3 and we define…a very simple service called greeter.…
And currently, this supports only one method:…
This course was created and produced by Packt Publishing. We are honored to host this training in our library.
- Cloud native application platforms
- Go frameworks and libraries for microservices
- Using Docker for containerization
- Using Kubernetes for orchestration
- Using Consul for microservice discovery and configuration
- Registration and lookup
- Implementing service discovery using Kubernetes
- Microservice communication patterns: Sync and async
- Using circuit breakers for resilient communication
- Implementing message queuing with Rabbitmq
- Using Apache Kafka for publish/subscribe