Which one should I choose AMQP or XMPP for real-time browser-based game?

Posted by Devyn on Stack Overflow See other posts from Stack Overflow or by Devyn
Published on 2010-05-30T15:40:49Z Indexed on 2010/05/30 16:52 UTC
Read the original article Hit count: 333

Filed under:
|
|
|
|

Hi, I'm choosing between AMQP (RabbitMQ) vs XMPP (eJabberd) for my browser-based flash-free javascript powered real-time turn-based game. I don't know much about AMQP and XMPP protocol. I would like to use PHP for user-authorization and some data store-retrieve with MySQL. As far as I found out, RabbitMQ has PHP clients but eJabberd not.

What I understood is javascript client calls PHP script and manipulate necessary processing and then pass to AMQP or XMPP server to pass the data to opponent player. There is a good book 'Pro XMPP Programming with JS and jQuery' from Wrox but there is no example with PHP. So following are my questions.

1) Which protocol is suit for my game?

2) Shall I choose RabbitMQ just for it's PHP client support?

© Stack Overflow or respective owner

Related posts about php

Related posts about xmpp