What is difference between grpc and websocket? Which one is more suitable for bidirectional streaming connection?
问题 I want to develop a client-server application in a bi-directional streaming manner. what is more suitable technology for this, grpc or websocket? 回答1: gRPC is not really the relevant part for comparison, it's that gRPC uses HTTP/2 which can certainly be compared to WebSockets. https://www.infoq.com/articles/websocket-and-http2-coexist This article outlines them quite well. Essentially, HTTP/2 is Client/Server with Server Push on the background, so you can make your request and simply stay on