Giter Club home page Giter Club logo

Comments (3)

yjshen avatar yjshen commented on August 17, 2024

After throughout discussion with @codelipenghui, current sticky consumer lacks three main capabilities:

  • to create a consumer with immutable key-range at start time.
  • enable consumption without the need to ack messages.
  • the subscription seems to be different from that created from admin.topics.createSubscription()

from pulsar-flink.

codelipenghui avatar codelipenghui commented on August 17, 2024

@yjshen
I noticed @jiazhai add support for exposing subscription mode at the consumer side. So that we can create a consumer with a non-durable subscription, it's more like a reader.

And I forgot that the sticky consumer is supported, so to create a consumer with immutable key-range, we can use

client.newConsumer()
               .keySharedPolicy(KeySharedPolicy.stickyHashRange().ranges(Range.of(0, 10)))
              .subscribe();

So, looks the current problem is to enable consumption without the need to ack messages. I think we can add a flag at the consumer side to indicate that if the consumer can be blocked by un-ack messages or not. @sijie @jiazhai Please help to check if this is reasonable.

Or we can disable the un-ack message check when the consumer with a non-durable subscription?

from pulsar-flink.

jianyun8023 avatar jianyun8023 commented on August 17, 2024

pr #58 has completed this function.

from pulsar-flink.

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.