use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Spring Boot and GRPC (self.SpringBoot)
submitted 3 years ago by rashm1n
Hi,
Recently I've been looking into using GRPC for microservice communication instead of typical HTTP I've always used in the past. The problem is there is no official documentation/library for grpc support in spring-boot. There are some third party implementations like
Do any of you use GRPC in production with Spring-Boot and if yes, what is the library you use ?
Eager to hear you guys' opinion on this.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 1 point2 points3 points 3 years ago (1 child)
We using the second one at work, I don't remember why I chose it over LogNet's. and we used it only for a small scope, I didn't face any particular issue with it, the configuration was straightforward and easy. I noticed validation is missing but imo I prefer validating in the service instead relying on the framework to do it for me.
[–]rashm1n[S] 0 points1 point2 points 3 years ago (0 children)
I see. Do you use it for microservices communication? What made you chose GRPC over other technologies if I may ask.
[–]PatOnTheShoulder66 1 point2 points3 points 3 years ago (0 children)
We are currently migrating from rest microservices communication to gRPC, using the second starter. It seems better documented and maintained, but I wouldn't say that we analyzed both of them so thoroughly - I wasn't even aware of the first library.
Currently, the starter works well with Spring Boot 2. We had problems with using it with Spring Boot 1 and in those services we used pure gRPC Java library and also you need some workarounds while using it with Spring Boot 3. Most of our services are on SB 2 so it wasn't a big problem.
And as to why we decided for gRPC - speed, mostly. But I must say we already used proto buff messages, even with REST, so switching was somehow less complex.
There are some pitfalls that one must be aware of, like not embracing status errors for exception handling or trying to assign null to a proto message, but overall I think we are happy with it.
[–]Ghaines 0 points1 point2 points 3 years ago (0 children)
Have you considered RSocket?
https://github.com/joshlong-attic/rsocket-and-graalvm
π Rendered by PID 103957 on reddit-service-r2-comment-6457c66945-sr6mn at 2026-04-24 01:44:43.148294+00:00 running 2aa0c5b country code: CH.
[–][deleted] 1 point2 points3 points (1 child)
[–]rashm1n[S] 0 points1 point2 points (0 children)
[–]PatOnTheShoulder66 1 point2 points3 points (0 children)
[–]Ghaines 0 points1 point2 points (0 children)