Skip to content
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

Implement Last Value Cache pattern for iopub #266

Closed
JohanMabille opened this issue Dec 7, 2020 · 2 comments
Closed

Implement Last Value Cache pattern for iopub #266

JohanMabille opened this issue Dec 7, 2020 · 2 comments

Comments

@JohanMabille
Copy link
Member

JohanMabille commented Dec 7, 2020

With the current implementation, a client that connects to a kernel that idles never gets the "idle" message published on IOPub. This can be problematic for clients waiting for such a message before sending any request.

A reliable way to fix this is to implement the Last Value Cache pattern: replace the PUB socket with an XPUB socket, which can detect new subscriptions. We can than implement a cache mechanism that sends again the last message upon new subscription.

We must pay attention to set the XPUB_VERBOSE option to true to be able to detect all new subscriptions, not only those to new topics.

@JohanMabille
Copy link
Member Author

See jupyter/jupyter_client#593 for more detail on this.

@JohanMabille
Copy link
Member Author

The PUB socket has been replaced with an XPUB socket in xeus-zmq.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant