Hi,
If everything works as intended, it wont serialize anything:
zerorpc achieves IO multiplexing via gevent. Your database library
hopefully is compatible with gevent, thus you get maximum concurrency.
You can limit the global concurrency of zerorpc.Server via the
pool_size parameter. So you could of course set pool_size=1 to
serialize any function. But that would limit all concurrent call to
any other function. You could use a gevent mutex, semaphore, a
gevent.pool of 1, or a queue to serialize the access to your file.
My advice: If you want to serialize the whole function, use a mutex,
if you want to serialize access to the file, use queue and a
coroutine.
Best,
fx
> --
> You received this message because you are subscribed to the Google Groups
> "zerorpc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
zerorpc+u...@googlegroups.com.
> To post to this group, send email to
zer...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/zerorpc/14657cc0-5f90-4379-a911-d2b88473b716%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.