First, I'd note in case you dont know, that calling 'send' in Proton container apps in the callbacks doesnt really send anything on the wire then, that happens when IO is processed after the callbacks return. You can call send multiple times in a callback if you like to do multiple sends (first checking available sender credit to see that there is actually enough to send the messages, and being mindful of how much is being buffered) rather than doing it once at a time, and effectively batch sends of individual messages into one IO processing for efficiency. They are still individual message deliveries on the wire, but will go out at the 'same time' and could even be in the same TCP packet if small enough for that.
I know the Azure 'batch messages' in contrast use a different non-default 'message-format' code and specific payload encoding structure in the AMQP Transfer frames carrying the delivery, to hold 'multiple messages' back to back in one delivery (or at least they used to, since I previously advised some ways they could achieve that in their Java bits years ago using proton-j without it having specific support). I'm not sure if that formatting code and structure is actually documented other than the azure client code, you'd need to check with Microsoft. If knowing the format, youd then need to be able to set their 'batch message' message-format code on the delivery frames, and feed the bytes representing the encoding of your multiple-messages, encoded into the expected structure. C++ isnt my thing, so I dont know whether the C++ client can actually do that form of low level work or not (the underlying C bits should). On Thu, 19 Jan 2023 at 07:06, Arun Koshal <akosha...@gmail.com> wrote: > > Hi, > > I am using the Apache Qpid proton 0.37.0 C++ API to send messages from my > application to Azure Eventhub. The application is able to send one message > at a time, the rate of messages is slightly high, so one message at a time > is not very efficient. > > Azure Eventhub supports batches of messages, but I could not figure out a > mechanism to send messages in batches using Qpid proton. Does it support > sending batch messages? > > It would be a great help if someone can suggest a way to send batch > messages. > > Thanks and regards, > Arun --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For additional commands, e-mail: users-h...@qpid.apache.org