Skip to content

Implement Last Value Cache pattern for iopub #266

Closed
@JohanMabille

Description

@JohanMabille

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions