-
1. Re: Slow asynchronous acknowledgments
jbertram Jun 26, 2014 12:52 PM (in response to adamw)I wrote a simple test in the HornetQ test-suite to mimic what you're doing. You can find the relevant diff it at Simple timing test for send acknowledgements. When I run the test on my machine I consistently get ~1700 milliseconds so I think what you're seeing is "expected" in the sense that it appears consistent between disparate tests.
-
2. Re: Slow asynchronous acknowledgments
jbertram Jun 26, 2014 1:00 PM (in response to jbertram)BTW, that diff is for the "master" branch.
-
3. Re: Slow asynchronous acknowledgments
adamw Jun 26, 2014 2:19 PM (in response to jbertram)I see, thanks a lot for taking the time to repeat the test.
What would be the "recommended" way of sending messages (possibly batched) and getting back acknowledgments that messages indeed have been sent? The way I'm doing it now, or is there a faster way?
Adam
-
4. Re: Slow asynchronous acknowledgments
jbertram Jun 26, 2014 2:25 PM (in response to adamw)If you want to batch up a bunch of messages, send them, and receive an ack then the simplest way would be to create a transacted session, send a bunch of messages, and commit the session. When commit returns then you know you've gotten the ack.
-
5. Re: Slow asynchronous acknowledgments
adamw Jun 26, 2014 2:30 PM (in response to jbertram)Ok, thanks, I'll try that. Somehow I thought that transactions have some other kind of overhead, and using non-transactional sessions will be faster.
Adam