computer geeks. check out new technology i just created. - Miata Turbo Forum - Boost cars, acquire cats.

Welcome to Miataturbo.net   Members
 


Insert BS here A place to discuss anything you want

Reply
 
 
 
LinkBack Thread Tools Search this Thread
Old 07-10-2009, 07:01 PM   #1
Elite Member
Thread Starter
iTrader: (24)
 
Join Date: Jun 2007
Location: Sherman Oaks, CA
Posts: 4,481
Total Cats: 3
Default computer geeks. check out new technology i just created.

Real-time updates demo

real-time PUSH for browsers. reduces overhead of HTTP and with that lowers server load and content load times by a significant amount. source code is included.
UrbanSoot is offline   Reply With Quote
Old 07-12-2009, 05:20 PM   #2
Newb
iTrader: (1)
 
Join Date: Dec 2007
Location: Lafayette, Louisiana
Posts: 14
Total Cats: 0
Default

Isn't that already done with AJAX? I'm not a programmer but from the ones I've talked to that's what I've understood. I know Yahoo and Google's services push without polling using AJAX at least.
cryogenic is offline   Reply With Quote
Old 07-12-2009, 10:02 PM   #3
Newb
 
Join Date: Jan 2009
Location: Bay Area, CA
Posts: 43
Total Cats: 1
Default

I'm not quite smart enough to understand what you have done (But I'm interested). I think most current "AJAX" apps use some kind of "long pull" technique -- e.g. they keep a request from the browser open for a long period of time, waiting for something to come down the pipe from the server. This can have a similar effect as a "push", although it is not.

So, does your solution depend on a Flash plugin? I guess I have to read about "Flash TCP Sockets".

Chris (VB Dinosaur)
proto is offline   Reply With Quote
Old 07-12-2009, 10:21 PM   #4
Elite Member
Thread Starter
iTrader: (24)
 
Join Date: Jun 2007
Location: Sherman Oaks, CA
Posts: 4,481
Total Cats: 3
Default

yes, but its very inefficient because request just sits there taking up open apache nodes. on top of that there is a very nasty overhead of http which adds sometimes useless headers that you shouldnt even care about in this scenario. with my approach i removed http completely (except for loading initial page of course) but unfortunately it does rely on flash sockets so this wont work on mobile browsers :(

next week i will be implementing secure sockets (either ssl or tls)
UrbanSoot is offline   Reply With Quote
Old 07-13-2009, 12:51 AM   #5
Junior Member
 
Join Date: Feb 2009
Location: Oregon
Posts: 120
Total Cats: 0
Default

That is indeed cool. As a software programmer in a previous life, I can appreciate it.
b0ne is offline   Reply With Quote
Old 07-13-2009, 01:41 PM   #6
Elite Member
Thread Starter
iTrader: (24)
 
Join Date: Jun 2007
Location: Sherman Oaks, CA
Posts: 4,481
Total Cats: 3
Default

thank you
UrbanSoot is offline   Reply With Quote
Old 07-13-2009, 01:56 PM   #7
Elite Member
Thread Starter
iTrader: (24)
 
Join Date: Jun 2007
Location: Sherman Oaks, CA
Posts: 4,481
Total Cats: 3
Default

by the way, just did benchmark... my server (2.4ghz core 2 duo, 2gb ram, 250gb raid 5 sata, intel 1gbps network card) maxed out with 985,564 concurrent connections sending packets back and forth constantly! memory was as 55%, cpu was at 40% on one core and 70% on second core, and i had to stop because network card maxed out.

in my next release i want to have ability to load-balance and fail-over servers and have ssl sockets for secure connection.

also, i have another project in the making - low-cost highly-available load balancer which will let you load balance and cluster databases (mysql/postgresql/mssql) and web servers (probably based on nginx). its currently in pre-alpha but i do have some working code for database balancing and replication. in actual release i plan on having file server balancing and replication as well. still debating on what exactly i should use as transfer protocol... was thinking nfs.
UrbanSoot is offline   Reply With Quote
 
 
Reply

Related Topics
Thread Thread Starter Forum Replies Last Post
Buzzing from driver side of engine bay? (MS3 install) nick470 MEGAsquirt 7 06-16-2017 02:53 PM
Hey everyone another n00b here Big_gumby Meet and Greet 80 10-05-2015 05:06 PM


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -4. The time now is 11:35 AM.