-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Socket API in ZeroMQ #6
Comments
Since in the jupyter_client where we define the protocol of communicating with Kernel and FrontEnd, only Socket ZeroMQ Socket Lifetime:
Bind vs Connect
Queue underlying ZeroMQ connection
-With Bind, you allow peers to connect to you, thus you don't know how many peers there will be
-With Connect, ZeroMQ would create a single queue immediately because it knows that there's going to be
-Thus, there's no queue to store message to, when sending a message to bound socket with no peers, or a ROUTER with no live connections. |
Messaging Patterns based on sockets with matching types
The core ZeroMQ patterns are:
We' ll be focusing on the request-reply and pub-sub. Request-reply pattern
In Jupyter, we use the asynchronous type with DEALER and ROUTER socket types
|
The rest socket types and patterns in ZeroMQ are not used in Jupyter, thus we'll omit the rest parts |
https://zeromq.org/socket-api/
What's the difference with conventional socket?
juptyer_client protocol, is different.
cases one-to-many(multicast) relationships.
while simultaneously accepting incoming connections from multiple endpoints bound to the socket, thus allow
many to many relationships.
This many to many , reminds me of the characteristic of Jupyter, where a kernel could deal with multiple frontends
at the same time.
The text was updated successfully, but these errors were encountered: