Showing posts with label gRPC. Show all posts
Showing posts with label gRPC. Show all posts
gRPC is a modern open source framework to implement microservices in an efficient way to build high performance and highly scalable applications. gRPC uses Protocol Buffers / protobuf as data format for exchange of messages between microservices unlike REST API with JSON. gRPC enables pluggable support for authentication, load balancing, health checking and tracing. Uses HTTP/2 protocol to transport the data so allows bi-directional communication between microservices
gRPC enables to build 4 different kinds of APIs where you can build using traditional RESTful framework. These features are a game changer for microservices implementation. Currently we are using RESTful architecture to build our APIs for microservices. But there is a lot of overhead while building APIs uisng REST with JSON. Since JSON data format is good for small volume of data. But for huge volumes JSON is a hell. JSON is a text document, it is good for investigate the data because it is human readable. But parsing takes a huge amount computing resources. What if you have multiple microservices that exchange huge volumes of data. That is gonna be a hell.
gRPC solves the all problems that we faced with REST-JSON by using Protocol Buffers as data exchange format and also protocol buffers can be used to define service definitions and generating service stubs from ready made grpc /protobuf compiler provided by google. These compilers are available for around 14-15 programming languages by the time I write this blog. And also gRPC uses the latest HTTP/2 transport product which allows bi-directional streaming capability.
gRPC provides the following 4 types of APIs
- Unary API
- Server Streaming API
- Client Streaming API
- Bi-directional Streaming API
Check the following video to know more about these 4 APIs.
Types of APIs in gRPC Framework To Implement Microservices
RPidugu
June 10, 2020

gRPC is a modern framework developed by Google, that enables us to implement powerful APIs better than traditional RESTful Architecture. The APIs developed using gRPC are much efficient and faster than REST API in data exchange, since gRPC uses Protocol Buffers as data exchange format, which are binary and no need implement any special serialization process.
To know more about gRPC, check the following video, it explains the complete intro and main features gRPC framework.
gRPC - The NextGen Modern Framework for Microservices
RPidugu
June 07, 2020
