From: Walden H. Leverich
I sort of question the 30 seconds part of this too. I assume
you're using ajax to find out if there are updates, yes?

Yes, AJAX. That's right.

You could also hold the connection open on the server-side
for a period of time and have the client just reissue the request
when the server returns.

That made me think. AJAX is asynchronous, after all. And it made me think about server architecture, too.

If the connection were to stay open, that would tie up a socket at the TCP/IP level, and tie up a connection in the HTTP server. And what would the RPG program do to keep the connection alive (not respond)? I suppose it could wait on a data queue. And have a separate process on the server put an entry on the queue when an alert is due. Do folks really do stuff like that?

What if the user tabs over to the ToDo list while the async request is waiting, and begins checking off completed items? Just let the HTTP server launch a new instance of the application to process those requests?

What if Servlets were processing the requests? 1000 concurrent users. 1000 sockets open. 1000 HTTP connections. 1000 Servlet threads waiting for their respective alerts to be placed on a queue, keyed by session ID?

Makes me think.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.