I'd like to host apps that uses queue to communicate with each other on OpenShift. One kind of apps - producers will put some data to the queue and another type - consumer will process the message. My question is how to implement message queue. I've thought about two approaches:
- Create an app with JBoss, HornetQ and consumer and create proxy port for HornetQ, so that producers can send messages there.
- Create an app with JBoss and consumer, and make a JBoss's HornetQ available to producers. It sounds a bit better for me, but I don't know if I can make queue available to producers and how it works if there are more instances of consumer on different nodes (and different JBoss instances).