gRPC - vehicle for a real-time full-duplex communication
Vinod Gupta
Sr Technologist | Azure, MicroServices, Event Sourcing & CQRS | .NET Core, C#, Java
Have you ever worked on some kind of web based chat applications where the requirement is to manage the real-time participants message communication complexity? How to deliver messages to recipients in one-to-one or in a group chat? What if there are several (lets say 500) participants are in a group chat – how would the messages would be delivered to each of the participants seamlessly? what would be your architecture design that delivers messages from one participant to all participants in the group? Will you use polling? What would be the polling frequency? 1second/5seconds/10seconds? Will it be an ideal design where in every x seconds client goes and checks if there is a message for him? How will you save network bandwidth? How would you give the real-time communication experience to the participants?
HTTP/1 Cannot help with it because of its technical limitation!
gRPC: Developed by Google and later given to CNCF to make it opensource project, this standardizes real-time, full duplex communication using HTTP/2 standards over web – Isn’t it awesome ???
Read more about it, you will be amazed by this awesome technology – it used protobuf for serialization and uses streams for two-way communication!