Nandakumar R
Nandakumar R

Reputation: 1414

Can I send requests directly to AWS SQS from a web application front end using JS?

I have a web application which send frequents user activity, which in turn needs be processed later. So I want all user-activity requests stored on a queue(AWS SQS).

Can SQS be configured to accept requests directly from a web application as an AJAX request? Any help/reference URL is highly appreciated.

Upvotes: 2

Views: 1582

Answers (1)

E.J. Brennan
E.J. Brennan

Reputation: 46879

Yes its possible, you can even do it right from the browser bar, for example:

https://sqs.us-east-2.amazonaws.com/123456789012/TestQueue/?Action=SendMessage&MessageBody=This+is+a+test+message

Just substitute your ARN and your queue name and message body

Upvotes: 4

Related Questions