Abstract:The cloud servers need to interact with a large number of clients simultaneously in real time in the cloud computing and the mobile internet environment. Real time communication between servers and clients is usually implemented with XMPP and TCP long connection. However, current XMPP servers, which are usually designed in the traditional concurrent model, can hardly deal with such large number of concurrent connections due to their limited performance. In this paper, we propose a new XMPP system design with the Actor model, and develop a decentralized message routing algorithm based on consistent hashing, to achieve better concurrency, scalability and efficiency. The experiment results show that our system overperforms a popular open source XMPP server in the scenarios of high concurrency.