Can messages be sent in batches - AWS SQS

0 votes
Can I send messages in batches? For example, I want to send two messages in a single request. Is this possible?
Aug 20, 2019 in AWS by Haseeb
2,181 views

1 answer to this question.

0 votes

Yes! It's totally possible to send messages in batches in AWS SQS. It would look something like this:

response = queue.send_messages(Entries=[
    {
        'Id': '1',
        'MessageBody': 'Da Vinci Code'
    },
    {
        'Id': '2',
        'MessageBody': 'boto3',
        'MessageAttributes': {
            'Author': {
                'StringValue': 'Dan Brown',
                'DataType': 'String'
            }
        }
    }
])
answered Aug 20, 2019 by Scarlet

Related Questions In AWS

+1 vote
5 answers

Can Celery be used with Amazon SQS

I regenerated the credentials in the IAM ...READ MORE

answered Oct 25, 2018 in AWS by triedntested
3,990 views
+5 votes
2 answers

Can we export/migrate users from AWS cognito, does it cause vendor lock-in?

Cognito actually has the capability to import ...READ MORE

answered Aug 1, 2018 in AWS by bug_seeker
• 15,510 points
5,059 views
0 votes
1 answer
0 votes
2 answers

How many instances can be created under AWS free tier account

Ans 1. Amazon charges based on usage per ...READ MORE

answered Jun 7, 2018 in AWS by MISHA
• 520 points
1,998 views
0 votes
1 answer
0 votes
1 answer

How can I disable a user's password in AWS using boto3

delete_login_profile is the one you should use if ...READ MORE

answered Sep 27, 2018 in AWS by Priyaj
• 58,020 points
3,092 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP