So from that it appears the Azure batch message format is a 'first
message annotations' included in the 'agregating message', followed by
one or more Data body sections to carry the other individual messages,
with each body section carrying the encoded bytes of an encoded full
amqp message (and all its encoded sections) from the batch...with all
those bytes then sent into a single delivery with the special
message-format code to indicate its an 'azure batch message' rather
than a normal/default AMQP 1.0 message encoding (though, the
components used in the aggregating message are actually a regular
message encoding in themselves).

As I said In my other reply, I dont know if the C++ binding can
actually do that, its a higher level client binding implemented over
the C bits (which should be able to) so I dont know that it actually
exposes defining message-format or the ability to pass the raw
delivery-bytes rather than messages as its rare an application would
use those (whereas the java bits referenced here are all low level
engine bits, used within the higher level Azure client, which again
hides all that).

Robbie

On Thu, 19 Jan 2023 at 21:32, Connie Yau <conn...@microsoft.com.invalid> wrote:
>
> Hey,
>
> Batching is supported using proton-j by encoding multiple proton-j messages 
> into a single proton-j Message.  Here is a pointer to how we do it in Java:
> https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/implementation/ReactorSender.java#L249
>
> I hope this helps,
> Connie
>
>
>
>
> -----Original Message-----
> From: Arun Koshal <akosha...@gmail.com>
> Sent: Wednesday, January 18, 2023 23:07
> To: users@qpid.apache.org
> Cc: Arun Koshal <akosha...@gmail.com>
> Subject: [EXTERNAL] Batch send of messages to Azure event hub using Qpid 
> proton
>
> [You don't often get email from akosha...@gmail.com. Learn why this is 
> important at https://aka.ms/LearnAboutSenderIdentification ]
>
> 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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org

Reply via email to