It seems that vert.x has two primary features to expose micro services over jvms on different servers: [1] Clustered Event Bus or [2] HTTP rest-type services. I know vert.x is not opinionated, but I was wondering if there are any thoughts (or docs) to suggest when one type of micro service is better than another?
Here is what I have so far
HTTP pros:
simple to set up, no extra config necessary
Easier to introp with non vert.x consumers.
Out of the box security with ssl
Perhaps a less chatty protocol? (not sure about this)
Clustered Event Bus pros:
a more unified style across services
do not need to know in advance “where” the service is (as opposed to a URL), instead just pub/sub
The event bus has a pretty high fun factor – actually pretty important for programmers :)
Any thing else I might have missed?
Another idea is to always use the event bus to access a service, but a local handler will keep track of where and what type of service it really is – and route to either a local service on the event bus or to a http service. This can be all abstracted away, and would seem to the end programmer that everything is going off the event bus. Perhaps this is already a feature?
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/8e14ad23-d71c-410a-a384-7e7e3323cb6f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.