Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Dec 13, 2016
1 parent 8aa5584 commit 99647d2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,22 @@ asyncio (PEP 3156) support for ZeroMQ.
.. image:: https://travis-ci.org/aio-libs/aiozmq.svg?branch=master
:target: https://travis-ci.org/aio-libs/aiozmq

The difference between ``aiozmq`` and vanilla ``pyzmq`` (``zmq.asyncio``).

``zmq.asyncio`` works only by replacement *event loop* with custom one.
This approach works but have two disadvantages:

1. ``zmq.asyncio.ZMQEventLoop`` cannot be combined with
other loop implementations (most notable is ultra fast ``uvloop``).

2. It uses internal ZMQ Poller which has fast ZMQ Sockets support
but doesn't intended to work fast with many (thousands) regular TCP sockets.

In practice it means that ``zmq.asyncio`` is not recommended to be used with
web servers like ``aiohttp``.

See also https://github.com/zeromq/pyzmq/issues/894

Documentation
-------------

Expand Down

0 comments on commit 99647d2

Please sign in to comment.