Hi, I am thinking of adopting VertX to make a grpc...
# vertx
r
Hi, I am thinking of adopting VertX to make a grpc service, which is now just a dev version with a basic Netty server + Kroto+. However, I am wondering if I can use coroutines with VertX grpc. Does anyone have any experience or tips?
s
I didn't deploy gRPC in production, but I had started looking into it. On the 3.8.x tree there was a custom vertx compiler for gRPC. In 4.0 they move back to the standard protobuf builder. Under the covers it's using completable future. Which with the coroutine-jdk artifact you can await on. Not the smoothest transition but it works pretty well. Maybe som one with prod experience can provide more insight
a
dont use vertx with grpc
also #grpc
s
I'm curious as to why @asad.awadia I sort of came to the same conclusion. We backed off to kafka/event bus. But curious for additional insight
a
its too unnatural and feels really awkward - it feels like mixing two very distinct things and jerry rigging them together
The best part about vertx is that it feels very natural and intuitive - also who wants to use responseObservers — those are super primitives that should be wrapped with channels or rx or something
so either vertx - or grpc with kroto or rouzwawi/grpc-kotlin that make grpc much more natural to kotlin
Not saying don’t use grpc - just saying vertx + grpc might be a bit awkward for the codebase and devs
s
Thanks what I was feeling as well