Amazon SQS java client backed by Redis for non-cloud deployments, offline development, CI pipelines, etc...
You need to have redis server running and include the following in your pom:
<dependency>
<groupId>com.devquixote</groupId>
<artifactId>redisqs</artifactId>
<version>0.0.1</version>
</dependency>
Then use RedisQS
as you would AmazonSQS
in your application.
AmazonSQS sqs = new RedisQS("localhost", 6379, 1);
String queueUrl = sqs.createQueue("testQueue").getQueueUrl();
sqs.sendMessage(queueUrl, "test message");
ReceiveMessageResult result = sqs.receiveMessage(queueUrl);
assert result.getMessages().get(0).getBody().equals("test message");
The intent is for RedisQS to mimic the behavior of the Amazon Java SDK's AmazonSQS implementation as closely as possible. Not every feature is implemented, however. Refer to the SDK's javadocs and the tests here for more information.
- Fork it
- Hack it
- Push it
- Send pull request