GithubHelp home page GithubHelp logo

smithk86 / asyncio-multisubscriber-queue Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 1.0 1.09 MB

Allow a single producer to provide the same payload to multiple consumers simultaneously

Home Page: https://smithk86.github.io/asyncio-multisubscriber-queue/

License: MIT License

Python 100.00%

asyncio-multisubscriber-queue's People

Contributors

smithk86 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

a129924

asyncio-multisubscriber-queue's Issues

Replay queue for new subscribers

Hi @smithk86,

Thanks for your work on asyncio-multisubscriber-queue!

I think it might be great (but subject to discussion, as this might be out-of-scope for this library) to have some sort of "non-fire-and-forget" functionality where new subscribers would replay the whole history of updates pushed to the multisubscriber-queue; currently it is plain "fire-and-forget" (and this might be by design!) so users need to ensure that subscribers are already subscribed to the queue before producer start producing messages, otherwise messages might just get lost (https://github.com/smithk86/asyncio-multisubscriber-queue/blob/main/asyncio_multisubscriber_queue/queue.py#L105).
This "forces" users to have some flow-control (as this scenario can easily happen in an async-world) between producer and potential consumers, which can be sometimes inconvenient.

Curious on what you think on the above? If this is something you believe might make sense I'm happy to try and tackle this when I get some time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.