-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add more producer error handling options #35
Comments
I currently ran into same situation. But i have seen that this is more a spring cloud stream bug caused by: com.solace.spring.cloud.stream.binder.outbound.JCSMPOutboundMessageHandler.handleMessage Or more specific, the whole async sending is not a god plan! This caused me to do the sending by my own:
But here i stuck again, because it is not possible to access the jcsmpSession. @Nephery do you have any plans to add synchronous sending? Or even better do you already any architecture designs? |
@GreenRover - completely agree that the current solution is not very elegant. That said, I don't think we want to move to a synchronous send as it would kill performance (and is also why JCSMP doesn't support it). Since we're using Persistent messaging you'd essentially be waiting for the message to be sent, reach the broker and receive and ACK before being able to send the next message on that same producer flow. And that round-trip network time can be brutal! It looks like the Spring team is adding a new FYI @Nephery. |
@Mrc0113 Hi Marc, nice to hear. I am highly interested in news according to this issue. Please keep us up to date! At least to put through the exceptions from jcsmp woulp help mutch. |
@Mrc0113 I will start to investigate into this now. Will use https://github.com/SolaceDev/solace-spring-cloud/tree/client-ack as base branch. |
@GreenRover The |
As we will not find any good solution in: spring-cloud/spring-cloud-stream#2091 Possible solution Z:Add a binder option that enables: Use a future in: to block and wait for the async JCSMPStreamingPublishEventHandler.responseReceived Or any better ideas? |
@Nephery to check the relevance of this issue given the most recent features. |
@PhilippeKhalife This issue is still relevant, though the conversation tangented to implementing publisher confirmations. I've updated the issue description to clarify what this issue is for. |
Today the binder only sends publisher errors to error channels. We should consider adding other error handling e.g. maybe adding error queue support?
Note: October 21, 2021
Ignore all comments from #35 (comment) to #35 (comment). These comments are irrelevant to this issue.
The text was updated successfully, but these errors were encountered: