As illustrated above, I need to build a Vert.x Java app that will be an HTTP server/virtual host (TLS Http traffic, Web socket traffic) that will redirect/channel specific domain traffic to other Vert.x Java apps running on the same server, each in it's own JVM.
I have been reading for days but I remain uncertain as to how to approach all aspects of the task.
What I DO know or have experience with:
- Creating an HTTP server, etc
- Using a Vert.x VirtualHost handler to "handle" incoming traffic for a specific domain
What I DO NOT know:
How do I "re-direct" a domain's traffic to another Vert.x app (this other Vert.x app would also be running on the same server, in its own JVM).
- Naturally this "other" Vert.x app would need to respond to HTTP requests, etc. What Vert.x mechanisms do I employ to accomplish this aspect of the task?
Are any of the following concepts part of the solution? I'm unfamiliar with these concepts and how they may or may not form part of the solution.:
Running each Vert.x app using -cluster option?
Vert.x Streams?
Vert.x Pumps?