Giter Site home page Giter Site logo

Comments (2)

ikavgo avatar ikavgo commented on May 24, 2024

It appears as if IfUnused and IfEmpty are ignored for streams - https://github.com/rabbitmq/rabbitmq-server/blob/main/deps/rabbit/src/rabbit_stream_queue.erl#L197.

Regarding user experience. The numbers shown have different source depending on the queue type. Classic queues go thru process dictionary for all ch records and use the same mechanics for implementing IfUnused. Quorum queues show consumers via queue_metrics and ets:lookup_element. Stream queue uses yet another way of getting consumer count - it enumerates queue nodes and does rpc.

So regarding guarantees and behaviours I have these question:

  1. does it make sense to let streams respect IfUnused/IfEmpty?
  2. does it make sense to use the same mechanics from info/2 that used to generate values displayed to user to implement IfUnused/IfEmpty for streams and quorum queues?
  3. Quorum queues go to metrics for consumer counts and streams enumerate nodes and also doing ets calls. Shouldn't they look the same?

from rabbitmq-server.

Zerpet avatar Zerpet commented on May 24, 2024

does it make sense to let streams respect IfUnused/IfEmpty?

I don't think so, specially if they are just ignored at the moment. Streams are expected to have data all the time when, at least, one message is published. Perhaps it could support if-unused, I don't have a strong opinion on that regard. My intention with this issue was to focus primarily on Quorum Queues.

I can't comment on your other questions since I have little-to-none context on those areas 🙃

from rabbitmq-server.

Related Issues (20)

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.