I'm trying to send 1 Million small messages via an Event Hub with 10 partitions and 10 Throughput Units.
For that purpose I'm using javax.jms.MessageProducer .
My question is: How come I never get to catch a ServerBusy (or any other) exception although I do see errors on the Azure Event Hubs UI? Could it be that the java library already handles the exceptions, including maybe re-sending the messages, without exposing it outside at all?
And, generally speaking, what would be the Best Practice of ServerBusy Error Handling in a Java producer? (Maybe implement a rate-limiter so that the producer will always send not more than 1000 messages per TU? Or maybe implement a Resend Policy upon catching ServerBusy exception? ... )