[UPHPU] Is there any PHP asynchronous messaging solution?
boucha at gmail.com
Wed Oct 25 09:21:07 MDT 2006
On 10/24/06, Ray Hunter <bigdog at venticon.com> wrote:
> > I need to implement some publish-subscribe type messaging and i'm looking for
> > a PHP based messaging system. Hopefully something that stores messages on a
> > mysql database.
> what you are looking for is typically called a MOM (message oriented
> middleware). This is a type of system that allows for inter-application or
> exter-application communication via some asynchronous method. I doubt you are
> going to find anything written in php that will provide the middleware with
> features that are you looking for. if you provide more information on what you
> are trying to accomplish i might be able to help you further with some options.
> the storage mechanism for message queues can be very different...some are
> database and other are implemented in various ways like system memory. you dont
> really have much flexibility on this. I dont think i have ever seen one
> implemented using mysql...now oracle and db2 i have seen.
> > If there isn't any, i'll have to connect to JMS or MSMQ. Does either JMS or
> > MSMQ have a way to connect to them using http for both publishing AND
> > listening? I've read about using manta ray and the java bridge to connect to
> > JMS, has anybody actually done that?
> since mom protos are not very well defined you will mainly see the sun java
> standard of jms. that is the standard for connecting java to a messaging
> service. technically, you could probably use any lang if you know how to do it,
> however, that might not be what you want to do.
> im not sure what your requirements are or what you are trying to accomplish;
> however, if you are justing wanted to send messages then i would suggest maybe
> taking a simple approach and see if you could use something like jabber with a
> mysql backend. then you can access that service via some lang like java (jms) or
> something else. If you want a full blown solution, then you can use oracle
> queuing or even ibm mq series. However, those are extremely expensive.
You might look at Amazon's Simple Queue Service.
They charge $0.10 per 1000 messages.
More information about the UPHPU