Skip to content

Instantly share code, notes, and snippets.

@hintjens
Created August 11, 2010 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hintjens/519641 to your computer and use it in GitHub Desktop.
Save hintjens/519641 to your computer and use it in GitHub Desktop.
To bridge 0MQ to SoupTCP, create a proxy that connects to SoupTCP at the frontend and publishes updates to a 0MQ network at the backend:
[[code type="textdiagram"]]
+------------+
| |
| NASDAQ |
| |
+------------+
| SoupTCP |
\------------/
bind
|
v
connect
/------------\
| TCP socket |
+------------+
| |
| Bridge |
| |
+------------+
| PUB |
\------------/
bind
|
|
+----------------+----------------+
| | |
| | |
connect connect connect
/------------\ /------------\ /------------\
| SUB | | SUB | | SUB |
+------------+ +------------+ +------------+
| | | | | |
| Subscriber | | Subscriber | | Subscriber |
| | | | | |
+------------+ +------------+ +------------+
Figure # - Making a SoupTCP Bridge
[[/code]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment