-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reactive messaging Emitter<T> interface is missing Mutiny integration #11572
Comments
/cc @cescoffier |
What is it you're trying to do? I'm still learning a lot of this but I'm not sure it makes sense for a single emit event to return a |
Hi @kenfinnigan
|
Possibly for 1, but I think there are methods to create a For 2, right now the emitter sends a single message at a time, I don't believe there is the concept of sending a batch of messages at once. That would require changes to SmallRye Reactive Messaging to support it. However, if what you want to do is have a stream that emits a message as new things come through the pipeline, I believe that is achievable today. It would mean having a I could be wrong, but that's my understanding |
All the things you said make sense. Don't you think that it will be more consistent if the sending of a message also support Mutiny out of the box? As I have already pointed out the consuming of a message has a first class Mutiny support https://smallrye.io/smallrye-reactive-messaging/smallrye-reactive-messaging/2/emitter/emitter.html#streams |
What would you consider supporting Mutiny in the emitting of messages as well? Is it returning |
As you said Multi might not be OK. So at least returning |
Please raise an issue here: https://github.com/smallrye/smallrye-reactive-messaging/issues It can then be discussed and implemented |
Thanks |
Quarkus version: 1.7.0
package org.eclipse.microprofile.reactive.messaging;
Why does the Emitter interface has only the CompletionStage send(T msg) method and is missing Uni and Multi send overloads?
As shown here I can consume the messages using mutiny types https://smallrye.io/smallrye-reactive-messaging/smallrye-reactive-messaging/2/emitter/emitter.html#streams
@Inject @Channel("my-channel") Multi<String> streamOfPayloads;
But I can only send them using the Emitter that doesn't understand mutiny
CompletionStage<Void> send(T msg)
The text was updated successfully, but these errors were encountered: