jstnchng
jstnchng

Reputation: 2221

Polling Continuously from a SQS queue on AWS

I have a java class that connects to an SQS queue and I would like it to respond to messages that are sent to the SQS queue. Is that possible without running the java class continuously, sending receiveMessageRequests?

Upvotes: 0

Views: 1067

Answers (1)

E.J. Brennan
E.J. Brennan

Reputation: 46841

No, its not possible. SQS requires you to poll to see if there are messages waiting for you.

If you could uses SNS instead of SQS you could have messages pushed to you instead.

Upvotes: 5

Related Questions