subscribeis not batch'able
pullyou are on your own
PubSubTemplate#pullAndAck()wrapper. This is not something new for me. My previous frustrations with Spring's Pub/Sub integration has led me to develop reactor-pubsub.
reactor-pubsub's experience is like a fresh breeze compared to all this madness. Don't get me wrong, I am not pointing any fingers. Spring Integration is a huge project and trying to do everything that is possible to do. Though this generalist approach comes with the cost of sometimes missing very fundamental and simple needs.
subscribe()doesn't return for us a batch of messages
pullfrom Spring Integration channel adapter perspective...
errorChannelabstraction which could be used for publishing into the mentioned DLQ.
ErrorMessageStrategyto let to build a specific error message which could be used to produce some target protocol even for a DLQ.