Welcome Guest, Not a member yet? Register   Sign In
how to implement Server-sent events with codeigniter ??
#4

[eluser]Pert[/eluser]
[quote author="lorenzo108" date="1369837585"]I thinking about send an AJAX request to the server every n seconds,but the problem with this ,if i have a lot of connections in real time with the server,my server will be under presure .[/quote]

Depending what did you mean by a lot of connections.

If you have one page that has multiple parts updated, you can do one call every 5-30 seconds and it will get data back for all the different updates.

If you mean you have a lot of users then doing a AJAX request should be less straining on the server than all these users hitting F5 all the time, as there should be much less data going up and down.

For medium size projects (number of users, posts, etc) you will get away with well planned application structure to minimise work and calls that server has to do.

If you are planning to build Facebook, I believe they keep all the updates in RAM rather than DB.

Said that, Facebook started as standard PHP site without massive server farms and custom built server software.


Messages In This Thread
how to implement Server-sent events with codeigniter ?? - by El Forum - 05-27-2013, 11:27 AM
how to implement Server-sent events with codeigniter ?? - by El Forum - 05-28-2013, 09:16 AM
how to implement Server-sent events with codeigniter ?? - by El Forum - 05-29-2013, 07:26 AM
how to implement Server-sent events with codeigniter ?? - by El Forum - 05-29-2013, 07:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB