Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ad5922c

Browse filesBrowse files
author
Kenneth Reitz
committed
Merge pull request realpython#229 from petrushev/add-networking
Added networking section to scenarios.
2 parents 43eaed0 + ca5321f commit ad5922c
Copy full SHA for ad5922c

File tree

Expand file treeCollapse file tree

2 files changed

+33
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+33
-0
lines changed

‎docs/contents.rst.inc

Copy file name to clipboardExpand all lines: docs/contents.rst.inc
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ different scenarios.
4949
scenarios/cli
5050
scenarios/gui
5151
scenarios/db
52+
scenarios/network
5253
scenarios/admin
5354
scenarios/ci
5455
scenarios/speed

‎docs/scenarios/network.rst

Copy file name to clipboard
+32Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
Networking
2+
==========
3+
4+
Twisted
5+
-------
6+
7+
`Twisted <http://twistedmatrix.com/trac/>`_ is an event-driven networking engine. It can be
8+
used to build applications around many different networking protocols, including http servers
9+
and clients, applications using SMTP, POP3, IMAP or SSH protocols, instant messaging and
10+
`many more <http://twistedmatrix.com/trac/wiki/Documentation>`_.
11+
12+
PyZMQ
13+
-----
14+
15+
`PyZMQ <http://zeromq.github.com/pyzmq/>`_ is the Python binding for `ZeroMQ <http://www.zeromq.org/>`_,
16+
which is a high-performance asynchronous messaging library. One great advantage is that ZeroMQ
17+
can be used for message queuing without message broker. The basic patterns for this are:
18+
19+
- request-reply: connects a set of clients to a set of services. This is a remote procedure call
20+
and task distribution pattern.
21+
- publish-subscribe: connects a set of publishers to a set of subscribers. This is a data
22+
distribution pattern.
23+
- push-pull (or pipeline): connects nodes in a fan-out / fan-in pattern that can have multiple
24+
steps, and loops. This is a parallel task distribution and collection pattern.
25+
26+
For a quick start, read the `ZeroMQ guide <http://zguide.zeromq.org/page:all>`_.
27+
28+
gevent
29+
------
30+
`gevent <http://www.gevent.org/>`_ is a coroutine-based Python networking library
31+
that uses greenlets and libevent event loop.
32+

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.