Skip to content

Amazon SQS client backed by redis for local/offline development

License

Notifications You must be signed in to change notification settings

lwoodson/redisqs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build status

redisqs

Amazon SQS java client backed by Redis for non-cloud deployments, offline development, CI pipelines, etc...

Basic Usage

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.

Getting

Contributing

  1. Fork it
  2. Hack it
  3. Push it
  4. Send pull request

About

Amazon SQS client backed by redis for local/offline development

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages