Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I know Http protocol is a client Server Protocol ! it means it gives me the answer when i have a request !
but i always see my status updates automatically .
what is the Secret ?
is that a kind of Socket programming ?

i tried to Use jquery to make something similar . i sent a signal to server every 1 Second with jquery and server responded me . but it seems Stupid for Facebook !

how can i make something Like That ?!
Posted

1 solution

What is stupid here? That is what trending now a days. Page automatically refreshes with new data as soon as they come. That's really cool. You don't need to refresh the page time to time.

And it also notifies you about your friend's activities or any posts in which you are involved with. Whatever happening behind the scene does not matter so much, as long as user enjoys seeing what they really need as soon as possible. User experience is the main thing right now in this era of programming.
 
Share this answer
 
Comments
seyed mahmud shahrokni 6-Dec-14 14:12pm    
are you sure ?! If I put a signal equivalent to a bit
what will happen when 1000,000 persons wants to use your system ! you should send a signal for every one in every second ... ! No man it does'nt seem ok ! i talk about a big Application with a lot of users ! do you think facebook Uses this trick ?
Man, they don't have one Server listening or responding to all the requests. They have many server distributed over the network all over the world. The server nearest to you will handle your request. They have load balancing technique handling all the request coming to the server. Think about Google once. How many request it handles in one second !!! That is because of heavy servers all running and executing your request all the time. There are reserve servers available to compensate any fault of a server. Just imagine.
seyed mahmud shahrokni 7-Dec-14 5:38am    
huuum , You are right. i guessed !
i have another Question ? what do you think about data handling in facebook ? what type of dbms does it use ?
Relational ? OO ? object - Relational ?
which one is faster and better for a extremely big project like Facebook ?
I don't have an idea. But I got one link, that might give you some hint. http://www.dbms2.com/category/users/facebook-cassandra/

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900