I am going to be calling an ESB, so I want to make a service proxy for that code.
Since it is going to be common to several verticles, as the code is largely consistent between each ESB call, I will create other service proxies that are specific.
So, to look up open orders for a user, the OrderVerticle will put a request on the event bus, and the OpenOrderService will then put in the request for the ESBService.
So, my problem is I have everything dockerized, so each Verticle is in its own container. How do I dockerize the eventbus code? Should I just have one docker container with all the projects that are for the event bus?
That seems to be a bad idea, so what is the correct way to handle this?
Another thought was to put all of the service proxy projects for each verticle into the docker container for that verticle but that also seems wrong.
So, trying to understand the correct way to do this, as the simple way, but wrong, is to create new Verticles instead of a serviceproxy and then just make GRPC
or RPC
calls from the OrderVerticle
to OpenOrderVerticle
and from there to ESBVerticle
.