# Can you publish multiple messages with a single REST request?

**URL:** <https://community.solace.com/t/can-you-publish-multiple-messages-with-a-single-rest-request/1170>\
**Category:** General Discussions\
**Created:** [March 4, 2022, 7:36pm UTC](https://community.solace.com/t/can-you-publish-multiple-messages-with-a-single-rest-request/1170 "2022-03-04T19:36:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![petegehrman](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@petegehrman](https://community.solace.com/u/petegehrman)\
**Post date:** [March 4, 2022, 7:36pm UTC](https://community.solace.com/t/can-you-publish-multiple-messages-with-a-single-rest-request/1170/1 "2022-03-04T19:36:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Tamimi](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/tamimi/32/2190_2.png) [@Tamimi](https://community.solace.com/u/Tamimi)\
**Post date:** [March 9, 2022, 9:06pm UTC](https://community.solace.com/t/can-you-publish-multiple-messages-with-a-single-rest-request/1170/2 "2022-03-09T21:06:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![petegehrman](https://avatars.discourse-cdn.com/v4/letter/p/eada6e/32.png) [@petegehrman](https://community.solace.com/u/petegehrman)\
**Post date:** [March 9, 2022, 9:52pm UTC](https://community.solace.com/t/can-you-publish-multiple-messages-with-a-single-rest-request/1170/3 "2022-03-09T21:52:30Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Tamimi](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/tamimi/32/2190_2.png) [@Tamimi](https://community.solace.com/u/Tamimi)\
**Post date:** [March 10, 2022, 1:38am UTC](https://community.solace.com/t/can-you-publish-multiple-messages-with-a-single-rest-request/1170/4 "2022-03-10T01:38:40Z")

</div>

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
