<@U5RAC8PAQ> That's what I meant, I just wanted to...
# vertx
d
@x80486 That's what I meant, I just wanted to have a way to avoid the overhead of deploying verticles, when swarm does that for me. I looked into other solutions, but it looks like the only one that's async is vert.x, except for ktor that's on it's way but still in beta... Microservices need to be small to be scaled and scheduled by docker swarm without wasting too much resources...
x
Yeah, but be careful, because "deploying verticles" may not be the same as deploying artifacts/app that are composed of verticles. Again, just make sure they all can talk via the Event Bus...or any other communication channel (although the Event Bus is really convenient IMO). But I think I get what you are saying; you want to say: I want
3
instances of this artifact/container no matter what...and let Docker Swarm deal with that, instead of the Vert.x's
-ha
capability/switch (or something similar)
d
Right, I already have HA in swarm and a lot more... (If you're interested I recommend DevOps Toolkit 2.1 and 2.2 books by Viktor Farcic!). Do I have to use verticles in the first place? How could I have a setup without them?
x
That's what I don't get. Do you have one (or more) Vert.x applications that you are deploying using Docker containers...or not? If you are building an app/artifact that uses Vert.x, you need the verticles...those are the main components from the toolkit ― and eventually, they are able to communicate between each other using the Event Bus
d
I want to deploy multiple docker microservices that communicate between each other.. the main reason why I like vert.x is because of the async nature of it, like nodejs, but better...
x
Well, that's a different story. If you use Vert.x you can communicate the artifacts (provided they have verticles) using the Vert.x's Event Bus. If you have any other technologies, you would need something different then: a queue, RPC and things like that. Vert.x also have support for gRPC 😅 I don't think coroutines can talk to a different JVM (if ever).
d
Docker has an overlay network that allows communication service discovery.. but the event bus doesn't use a socket through a port?
x
There is a TCP event bus bridge is, so I think any application that can create TCP sockets can interact with a Vert.x artifact
👍🏼 1