Facebook uses publish/subscribe pattern for their chat app. I used Firebug to catch request in facebook site and I saw that every request to receive message from facebook server almost link to an address with pattern : http://[number].[number].chanel.facebook.com. There is about 0->20 channels which mean number in address pattern will range in [0-20]. I don't know why they need to use channel as subdomain ? Does it relate to divide processing chat message to multiple service (server) to increase server performance ? or just a subdomain name ? What is your opinion ? I'd like to hear your interesting idea on this.
Asked
Active
Viewed 973 times
2 Answers
1
I believe they use sub-somains because there's a limit on how many connections per domain a browser can keep open.
See How many concurrent AJAX (XmlHttpRequest) requests are allowed in popular browsers?
So, those sub-domains are not "channels".

Community
- 1
- 1

Çağdaş Tekin
- 16,592
- 4
- 49
- 58
0
These are special servers which handle only chat messages and notifications. Source: Rodrigo Schmidt's lecture (https://www.facebook.com/rodrigo)

Kačer
- 172
- 2
- 5