Home / speed dating oxfordshire / Free s vchat

Free s vchat

The secret for going from zero to seventy million users overnight is to avoid doing it all in one fell swoop.

We chose to simulate the impact of many real users hitting many machines by means of a "dark launch" period in which Facebook pages would make connections to the chat servers, query for presence information and simulate message sends without a single UI element drawn on the page.

Glueing together PHP, Javascript, Erlang, and C is not a trivial matter. Thrift translates a service description into the RPC glue code necessary for making cross-language calls (marshalling arguments and responses over the wire) and has templates for servers and clients.

Having a large-number of long-running concurrent requests makes the Apache part of the standard LAMP stack a dubious implementation choice.

Even without accounting for the sizeable overhead of spawning an OS process that, on average, twiddles its thumbs for a minute before reporting that no one has sent the user a message, the waiting time could be spent servicing 60-some requests for regular Facebook pages.

It is rather keeping each online user aware of the online-idle-offline states of their friends, so that conversations can begin.

The naive implementation of sending a notification to all friends whenever a user comes online or goes offline has a worst case cost of O(average friendlist size * peak users * churn rate) messages/second, where churn rate is the frequency with which users come online and go offline, in events/second.

531 comments

Leave a Reply

Your email address will not be published. Required fields are marked *

*