Skip to content
/ jrsmq Public

A lightweight message queue for Java that requires no dedicated queue server. Just a Redis server.

Notifications You must be signed in to change notification settings

igr/jrsmq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Sep 9, 2021
f3caca5 · Sep 9, 2021

History

61 Commits
Mar 21, 2017
Sep 9, 2021
Sep 9, 2021
Mar 11, 2018
Sep 9, 2021
Sep 9, 2021
Sep 9, 2021
Mar 11, 2018
Mar 19, 2017
Mar 11, 2018
Mar 11, 2018
Mar 11, 2018

Repository files navigation

RSMQ: Redis Simple Message Queue for Node.js

Redis Simple Message Queue

A lightweight message queue for Java that requires no dedicated queue server. Just a Redis server.

Java implementation of https://github.com/smrchy/rsmq.

Version

com.oblac:jrsmq:1.3.0

Java implementation notes

We are trying to follow the javascript contract as much as possible, including the method and properties naming.

Example

RedisSMQ rsmq = new RedisSMQ();

rsmq.createQueue()
    .qname("myqueue")
    .exec();

String id = rsmq.sendMessage()
                .qname("myqueue")
                .message("Hello World")
                .exec();

QueueMessage msg = rsmq.receiveMessage()
                        .qname("myqueue")
                        .exec();

rsmq.deleteQueue()
    .qname("myqueue")
    .exec();

rsmq.quit();

Enjoy!