gRPC for microservices communication

Click for: original source

Microservices architecture has become a popular choice for developing software applications. In a microservice architecture, the microservices often need to communicate with each other. Compared to the traditional RESTful web API, a gRPC based RPC framework can be a better alternative for microservices communication. By Pankaj.

The article then captures:

  • What is microservices architecture?
  • Microservices inter-process communication
  • Why gRPC for microservice communication?
  • Advantages of gRPC
  • Faster compared to JSON based RESTful APIs
  • Strong type and well-defined interface
  • Stream support
  • Code sample
  • Implementing gRPC client and server

… and more. gRPC based RPC framework is a great choice for inter-process communication in microservices applications. Not only the gRPC services are faster compared to RESTful services but also they are strongly typed. The Protocol Buffer, a binary format for exchanging data, is used for defining gRPC APIs. The gRPC is supported in many programming languages. You can find the working code example of this article at GitHub. Good read!

[Read More]

Tags apis microservices devops performance golang