We started using vert.x few days ago. Reading the documentation (A gentle guide to asynchronous programming with Eclipse Vert.x for Java developer - https://vertx.io/docs/guide-for-java-devs/) i understood the verticle concept. What i didn't understand is the concept of "service" and "service proxy":
"That’s the main purpose of service proxies. It lets you expose a service on the event bus, so, any other Vert.x component can consume it, as soon as they know the address on which the service is published. A service is described with a Java interface containing methods following the async pattern. Under the hood, messages are sent on the event bus to invoke the service and get the response back. But for ease of use, it generates a proxy that you can invoke directly"
But, how a single service is linked to the verticle & event loop concepts? Does it belongs to a separate standalone verticle and it has his separated event loop or it belongs to a particular verticle? When and where should i register a service? Inside a verticle start method or simply in the main method?
Thank you!