🎄 Happy Holidays! 🥳

Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.

Happy Holidays!

Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.

Can you publish multiple messages with a single REST request?

petegehrman
petegehrman Member Posts: 43 ✭✭

Is it possible to do a bulk publish to the broker with REST?

Answers

  • Tamimi
    Tamimi Member, Administrator, Employee Posts: 541 admin

    Hey @petegehrman ! Can you please elaborate further on your use-case? Thanks!

  • petegehrman
    petegehrman Member Posts: 43 ✭✭

    I am forwarding Amazon SQS messages to my Solace broker and have a Lambda function triggered when messages arrive in the queue. The lambda function receives up to 10 messages per call from SQS and needs to deliver them to the broker via REST. I'd like to make a single REST call with all of the messages if possible.

  • Tamimi
    Tamimi Member, Administrator, Employee Posts: 541 admin

    Are you able to write custom code in your lambda function? Reason being is you can use Solace Native APIs in your lambda function and and publish the messages into the Solace broker that way instead of using REST. This is just a thought, I will see if other community members have other thoughts on this