Re: Combine wsgi and asyncio - possible?
"Frank Millman" <frank-jWtBXEwHmq1Wk0Htik3J/[email protected]> Tue, 30 Sep 2014 17:28:37 +0200
| Newsgroups | gmane.comp.python.web |
|---|---|
| Message-ID | <9B2C12950B27419E8034ADE302AD26C2@frank> |
From: "Robert Collins" <[email protected]> To: "Frank Millman" <frank-jWtBXEwHmq1Wk0Htik3J/[email protected]> Cc: "Web SIG" <[email protected]> Sent: Monday, September 29, 2014 10:14 PM Subject: Re: [Web-SIG] Combine wsgi and asyncio - possible? Thanks very much, Rob - lots of useful info and valuable food for thought there. > On 30 September 2014 02:26, Frank Millman <frank-jWtBXEwHmq1Wk0Htik3J/[email protected]> wrote: >> Hi all >> >> I am developing a business/accounting application. It is not a web server >> in >> the conventional sense, but it uses http, and clients connect to it via a >> web browser. The server responds to an initial connection by sending a >> block of javascript which uses on_load() to display a welcome page. After >> that, all communication is handled by ajax-style messages passed between >> server and client. At no point is a new page requested or reloaded. > > Pages are browser constructs :) - I presume you're still speaking > HTTP/1.1, with each request and response JSON - so a typical HTTP API > implementation? > ... Yes > > One orthogonal thought here - HTTP/2 and websockets are [differently > but relatedly] aimed at solving this in perhaps a cleaner way. > I knew about web sockets, but not HTTP/2, so thanks for the pointer. I had a look on Wikipedia and it seems to be the future, so I feel that I should not try too hard for a perfect solution now, but just get something working and keep an eye on developments. Having done a lot more browsing/reading, I am leaning towards figuring out how to use flup/FastCGI. If I can get that working fairly quickly, it will allow sysadmins to deploy my app using standard tools, and I can get back to my main priority - the actual accountiing software. Let me know if you think that is a bad idea! Frank _______________________________________________ Web-SIG mailing list [email protected] Web SIG: http://www.python.org/sigs/web-sig Unsubscribe: https://mail.python.org/mailman/options/web-sig/gcpw-web-sig%40m.gmane.org