The Amazon AWS Java SQS Client is *Not* Thread-safe

Main menu:

Topics

Recent Posts

Feeds

RSS Feed RSS - Posts

February 2018
M T W T F S S
« Jan   Mar »
 1234
567891011
12131415161718
19202122232425
262728  

Past Posts

Java/Java EE

JDBC

Other

Archive for February 14th, 2018

The Amazon AWS Java SQS Client is *Not* Thread-safe

February 14th, 2018 by Scott Selikoff

I recently added long polling to an Amazon SQS project that processes thousands of messages a minute. The idea was simple: Spawn N number of threads (let’s say 60) that repeatedly check an SQS queue using long polling Each thread waits for at most one message for maximum concurrency, restarting if no message is found […]