amqp or xmpp for real time online games

后端 未结 4 607
情歌与酒
情歌与酒 2021-01-30 09:52

Which of these technology suite for Multi user online game project.. Project requirements: 1. Able to handle 2k-5k user at any given time. 2. client library for iphone and andr

4条回答
  •  伪装坚强ぢ
    2021-01-30 10:13

    5K users doesn't tell me much about their behaviour, but if they all submited one request within the same 10 second window then let's say you'd be looking in the 500-1000 requests per second.

    I've had Active/MQ running on my relatively low-powered lap-top easily handling 300 requests per second and so I'd happily recommend it here. You can also set up clusters of brokers and achieve horizontal scalability. You can use an http protocol (STOMP) or its native binary protocol. Lots of client API libraries also for C/C++, Java, JavaScript and others. There is some initial AMQP support.

    You didn't mention any persistence requirement, but again I would have thought that most RDBMSs would suffice. That said, some of the document oriented and big-table type databases look interesting from a horizontal scaling perspective.

    I've also found Apache Camel highly performant and I strongly recommend it. Camel is used to implement your logic layer.

    'hope that this helps.

提交回复
热议问题