Description
Ashok opened SPR-16358 and commented
gRPC is becoming defacto standard for service to service communication, due to its ubiquitous nature & use of HTTP2
Currently we have grpc-java
which generates its own version of classes that handle request in their own proprietary way when compared to Spring MVC & Spring WebFlux.
Plus, modern service mesh frameworks like https://envoyproxy.io works very nicely with gRPC.
Developers in spring world requires this high performance, type safe service-service integration (tho we have integration with hystrix, gRPC is much more performant & support wide variety of languages).
Here are some pain points in using grpc-java in spring world
- Since gRPC makes no assumption about Spring web framework, its request handling has a completely different path outside of WebFlux/MVC
- Integrating that code with spring ecosystem like Security will be completely adhoc & fragile
If spring can scaffold a WebFlux/MVC project from grpc service definition, it will improve the development experience & at the sametime developers like me can enjoy the benefits of gRPC
Issue Links:
- RSocket client and server support [SPR-16751] #21292 RSocket client and server support
- Support Protobuf serialization in WebFlux [SPR-15776] #20331 Support Protobuf serialization in WebFlux
- Add Thrift RPC support to WebFlux [SPR-16466] #21011 Add Thrift RPC support to WebFlux
7 votes, 18 watchers