I've tied myself in knots, being new to both STOMP and 0MQ, but in a nutshell, I want to facilitate client to client communication in the browser with interaction from a PHP MOM or a number of PHP MOMs. I'm considering using WebSocket to provide persistent duplex connections (when available) between html5 browser clients and the MOM endpoints, and then use those endpoints to facilitate communication between any number of browser clients, which may be related by 1-1, 1-many, many-1 relationships.
The MOM endpoints may communicate with other servers, or amongst themselves, for different purposes, and I believe that 0MQ may be a viable way to exchange information quickly between these servers. As a protocol for messaging between clients, STOMP looks good (though I'm aware of some problems with the protocols definition)....
.... so here's my point of confusion. To use STOMP, the MOM would have to be a STOMP broker, and if its a STOMP broker, then as 0MQ is a 'brokerless' messaging layer, wouldn't I be defeating the purpose of using both?
To clarify, I'm considering 0MQ for MOM - MOM communication, and STOMP for client - client communication.
Unless of course, there is a way in which I could repurpose 0MQ to facilitate client to client communications? I guess my real confusion is with 0MQ- is it a light weight messaging layer, and not a protocol, or both? If its a layer only, couldn't I use 0MQ to transport STOMP messages?
If anyone could shine some light on 0MQ for me, I'd be very grateful- thanks!