Skip to content

thoainguyen/grpc-java-course

Repository files navigation

grpc-java-course

Learn gRPC by follow here

gRPC feature

  • Compare to Rest/JSON base API

    • Cros
      • Use binary data format -> easy serialize and deserialize by machine
      • Smaller -> faster
      • ...
    • Cons
      • Few tools support for testing
  • Backward of HTTP/1

    • Create new connection for new request
    • Modal request/response -> server can response only they received a request from client before
    • Data isn't compressed
  • gRPC using HTTP/2 as transport layer

    • Mutiflexing : mutiple message in a connection
    • Server push : Server can response stream of message with a request from client before
    • Bidirectional : Server and client can asynchronous communicate each other
    • Header compression: header can be compressed so that that's size is smaller -> faster
    • Secure : Base on SSL/TSL protocol, gRPC is secure by default

gRPC basic

  • Unary
  • Server Streaming
  • Client Streaming
  • Bidirectional streaming

gRPC advanced

About

Learn gRPC : Unary, Server Streaming, Client Streaming, Bidirectional Streaming

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages