P
P
pup_pupets2014-10-14 21:59:35
ruby
pup_pupets, 2014-10-14 21:59:35

How powerful should a server be for chatting 100 people online?

Hello.
On the site I plan to make a chat on rails (with the help of Faye). However, I don’t know how powerful the server should be so that 100 people can easily communicate online? I understand that the load should be decent.
Maybe someone already has similar chats or just knows?
Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2014-10-14
@pup_pupets

profiling and load tests!
You understand that everything depends on the implementation.
Faye as far as I remember for pub/sub between ruby ​​and node.js use, no? That is, you will have a chat on node.js and authentication and authorization on ruby?
In general, 100 people online on websockets, even on ruby, can be mastered by a simple VPS bucks for 5 quietly. But everything can be screwed up by blocking the server with an authorization check or some other nonsense.
If you know how websockets work, are familiar with the concept of a tcp connection, know how to work with asynchronous sockets via epoll / select, then implementing a ruby ​​chat without any node.js is not a problem.

V
Viktor, 2014-10-21
@Levhav

The load will depend on the implementation, if you do it for example in php, then the load will be noticeable. If done in C ++, then any cheapest VPS will do and 99% of the resources will be idle on it unnecessarily.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question