Hi, I’m beginner… I wanna know more about SendProducer.
I see the documentation that “For use-cases that don’t benefit form Akka Streams, the Send Producer offers a Future-based send API.”
Future based send API… As i understand that,
- The function queues up work to be done and returns an uncompleted Future object immediately.
- Later, when a value is available, the Future object completes with that value (or with an error; we’ll discuss that later).
If we use KafkaProducer, it return Future[Done]. And if we use SendProducer, it returns Future[Result[…]]. So both return Futures. Then what’s difference?
Please help me in learning. @ennru