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: 538 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: 538 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