@Incoming Subscriber<Message<I>> method()
signature (Table 2 of https://smallrye.io/smallrye-reactive-messaging/smallrye-reactive-messaging/2.2/signatures/signatures.html)--
You received this message because you are subscribed to the Google Groups "SmallRye" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smallrye+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/smallrye/3cf48d75-e839-4acc-9416-70e719c83b65n%40googlegroups.com.
Thanks for looking into this. The use-case for using Subscriber is to be able to control the number of requests in the Subscription. We're also using MANUAL Acknowlegement Strategy, to be able to control when the incoming Messages get acked. We're consuming data from a kafka topic, but we want to be able to control how many incoming data we can handle, asynchronously. We set the initial subscription.request() to a reasonable number and then increment the request as more asynchronous handlers are added and the data gets processed. The asynchronous processing expects to receive a "batch" of data (multiple kafka Messages) before it does something with them. After it has completed its processing of those Messages, it will ack() and then call subscription.request(n) to keep the pipeline full of data.I have temporarily converted to using the @Incoming, as you suggested. But this does not give us the ability to control the number of outstanding requests at the Subscription, via subscription.request(n).Previously with Subscriber<Message<T>>, in quarkus, the onSubscribe() gets automatically invoked and we start receiving Messages from the kafka topic. We didn't need to wire up an upstream to start receiving data. Is there an example of how we should be wiring things up to our Subscriber? It's not clear to me after reviewing the SubscriberMediator what I should be doing differently.
To view this discussion on the web visit https://groups.google.com/d/msgid/smallrye/8a68ea1f-192f-4ed8-8c3b-02003864025fn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/smallrye/27524a3d-0a4e-481a-b015-ee0c0c23b98bn%40googlegroups.com.