Question

I need to put up a server with many and many connections, approximately 1 million at the same time.

I need to know how to do it and what technologies to use. I have messages from users (i'll use xmpp protocol), and they have to pass from a server, so if 1 million people at the same time use the same server it will crash. And the users will use database (mysql?) for registration.

So...how do I set the server so that it doesn't crash? What kind of server i'll use (apache mysql server...)? And what to do for the database to hold all that traffic? queries won't take too much time?

I've read those documents for configuring mysql and they don't suggest me to have more then 1000 connections.. link

Thank you!

Was it helpful?

Solution

You should set up loadbalancers(like nginx, haproxy) which send users to the right server, and you can build a cloud: webserver cluster, database cluster behind load balancers. You can also set up a backup server and rsync which can restore your data if anything goes wrong.

check digitalocean tutorials, its worth a shot: haproxy

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top