Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #68203
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <chris@simplistix.co.uk> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.002 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'read.': 0.03; 'from:addr:simplistix.co.uk': 0.09; 'from:name:chris withers': 0.09; 'message-id:@simplistix.co.uk': 0.09; 'received:server1.simplistix.co.uk': 0.09; 'received:simplistix.co.uk': 0.09; 'api': 0.11; 'python': 0.11; 'thread': 0.14; '(do': 0.16; 'blocking': 0.16; 'expecting': 0.16; 'non-blocking': 0.16; 'received:buzzkill.local': 0.16; 'reedy': 0.16; 'simpler,': 0.16; 'simplistix': 0.16; 'subject:which': 0.16; 'twisted': 0.16; 'url:simplistix': 0.16; 'wsgi': 0.16; ':-)': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'app': 0.19; 'trying': 0.19; 'possible,': 0.19; 'thanks.': 0.20; 'code,': 0.22; 'header:User- Agent:1': 0.23; 'from:addr:chris': 0.24; 'header:In-Reply-To:1': 0.27; 'record': 0.27; 'to:2**1': 0.27; 'idea': 0.28; 'rest': 0.29; 'chris': 0.29; 'database,': 0.30; "i'm": 0.30; 'code': 0.31; 'easier': 0.31; 'requests': 0.31; 'serve': 0.31; 'layer': 0.31; 'protocols': 0.31; 'option': 0.32; 'community': 0.33; 'guess': 0.33; "i'd": 0.34; 'could': 0.34; 'but': 0.35; 'really': 0.36; 'are,': 0.36; "i'll": 0.36; 'subject:?': 0.36; 'similar': 0.36; 'should': 0.36; 'too': 0.37; 'to:addr:python-list': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'mailing': 0.39; 'how': 0.40; 'most': 0.60; 'hope': 0.61; 'our': 0.64; 'networking': 0.64; 'pick': 0.64; 'more': 0.64; 'between': 0.67; 'url:co': 0.67; 'response.': 0.68; 'hand': 0.80; 'flame': 0.84; 'faced': 0.91; 'why?': 0.91 |
| Date | Tue, 11 Mar 2014 07:53:10 +0000 |
| From | Chris Withers <chris@simplistix.co.uk> |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
| MIME-Version | 1.0 |
| To | Terry Reedy <tjreedy@udel.edu>, python-list@python.org |
| Subject | Re: which async framework? |
| References | <531E22DF.7030709@simplistix.co.uk> <lflcha$2mf$1@ger.gmane.org> |
| In-Reply-To | <lflcha$2mf$1@ger.gmane.org> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.8038.1394524394.18130.python-list@python.org> (permalink) |
| Lines | 39 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1394524394 news.xs4all.nl 2866 [2001:888:2000:d::a6]:56068 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:68203 |
Show key headers only | View raw
On 10/03/2014 21:57, Terry Reedy wrote:
>> I'd like to be able to serve the rest of the web api using a pyramid
>> wsgi app if possible, and I'd like to be able to write the things that
>> process requests in and validation out in a synchronous fashion, most
>> likely spinning off a thread for each one.
>
> If you are writing 'standard' blocking, synchronous code, I am not sure
> why you would use any of the above.
The idea I have is to do all the networking async based on a declarative
set of messages in and recording all messages out and then hand that set
of messages off to a syncronous layer to make assertions, record into a
database, etc.
>> The protocols are all financial (do we really not have a pure-python FIX
>> library?!) but none are likely to have existing python implementations.
>>
>> How should I pick between the options? What would people recommend and
>> why?
>
> I know nothing of tornado. I personally would use asyncio over twisted
> if I could because it is simpler, in the stdlib, has the option to write
> 'untwisted' non-blocking code similar to blocking code, and the docs
> easier for me to read.
Thanks.
Guess I was expecting more of a response. I suspect I'll just end up
cross-posting to the various mailing lists, which I hope won't cause too
much offence or kick off any flame wars.
I'm faced with a difficult choice that I suspect many in our community
are, just trying to find out how to make the best decision :-)
Chris
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: which async framework? Chris Withers <chris@simplistix.co.uk> - 2014-03-11 07:53 +0000
csiph-web