Re: ZODB and asyncio interaction

Jesus Cea <[email protected]>
Newsgroups gmane.comp.web.zope.zodb
Message-ID <[email protected]>
On 22/04/16 15:24, Jason Madden wrote:
> Now greenlets are basically just extremely lightweight threads, and
> python threads release the GIL when they do socket IO, so the same
> principles apply to using a thread pool. And all of Jim's remarks
> remain true. I will say that we've had good results applying
> gevent+ZODB in an environment where large numbers of threads would
> make for different tradeoffs (large numbers of persistent WebSocket
> connections).

Yes, this is what I have using for ages, threads or thread-like
approaches. Clean and easy. People argue that threads are error prone,
but being disciplined with intercommunication is all it takes.

My problem, though, is that more and more ecosystem is moving to asyncio
model (I am quite quite skeptical about it, I rather prefer threads or
if they are too heavy for the application, greenlets) and transparent
persistence as provided by ZODB or DURUS are fundamentally incompatible
with asyncio, AFAIK.

I was wondering about if this conclusion is right or I am missing something.

-- 
Jesús Cea Avión                         _/_/      _/_/_/        _/_/_/
[email protected] - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
Twitter: @jcea                        _/_/    _/_/          _/_/_/_/_/
jabber / xmpp:[email protected]  _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz

-- 
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.
signature.asc (application/pgp-signature, 473 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJXGkDNAAoJEGjgN61Khv5DE8sH/0vfU28XMAsNlCNMQbpOXT6T
couFHyWrSl+d7Q01B8TMjyDuSNEVjKf1AVZTYwqmBwnEMOnXwToz7GXAnN3R6ajE
+6UOq9CNTv2qMcrkc1xYf577Uyo+iFHta7xzeaI/z/PyFByUxUT2k+rhHn4FcNxF
78+/Unb9FA064LIUKsAgnF9YWdV14i1CRGyDrq0gsrTf7lG8SNni3RAEGqPWZ3xj
fCmjJVXi/Kqrq13EZWscfCL7FJpdIgEzK1c3kRfV2dA2lwpGpqOVjt13xxM1zHp9
9SDBCngZu06yHfDrsVrsbcJliTiul1zXQEq64y6KzzeFUn6IoUQEo8elP247p/I=
=7Dkz
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.