Re: How to use ZODB & ZEO from asyncio code?
Jim Fulton <[email protected]> Fri, 6 Oct 2017 08:41:05 -0400
| Newsgroups | gmane.comp.web.zope.zodb |
|---|---|
| Message-ID | <CAPDm-Fh+CdwLGjcrO+auoYro2-ijZ96_Y3-3gNJKfAaCSLx+YQ@mail.gmail.com> |
On Fri, Oct 6, 2017 at 8:10 AM, Etienne Robillard <[email protected]> wrote: > Gevent provide a cooperative framework for multithreaded ZODB applications. > It does this primarily to get async I/O without using an async frameworks. As typically applied, it replaces threads with greenlets, making what was a multi-threaded application single-threaded. > I'm not sure the distinction between a "synchronous" and "asynchronous" > framework for multithreaded applications is very useful. > I am, although multithreadedness isn't very relevant, aside from the fact that asynchronous frameworks are often used to avoid use of many threads. Asynchronous APIs are extremely invasive. They violate separation of concerns because once a function is asynchronous, pretty much everything above it in the call stack has to be asynchronous too. IMO, they also invite fails because people will tend to use them, because fashion, without understanding the ramifications of blocking, especially by non-I/O code. Jim -- Jim Fulton http://jimfulton.info -- You received this message because you are subscribed to the Google Groups "zodb" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.