WonderQ API Documentation - PaulWarnick21/WonderQ GitHub Wiki
API documentation for the functions used to create WonderQ
messageBody: Object { message: $ANY }
callback: function
- We use
sendMessageto save a new message into WonderQ -
messageBodyis an object with a single message property of any type - We use
callbackto return a success/error status to our REST API as well as the generatedmessageIDto return to the producer
callback: function
- We use
receiveMessageto read a new message from the queue- We'll go through the queue in a FIFO order looking for the first message that is currently unlocked and ready for processing
- Once we've located an item that is ready for processing, we lock that item, generate the
receiptHandlestart thevisibilityTimeoutand return the item to the consumer-
receiptHandleis used to once the consumer has finished processing to track deletion of the current message -
visibilityTimeoutis used to track how long a consumer can hold onto a message to process before it becomes visible to other consumers again
-
-
callbackis used to indicate the status to our REST API as well as the queue message itself
receiptHandle: uuidv4()
callback: function
- We use
deleteMessageto delete a message from WonderQ- The
receiptHandlepassed in should be auuidv4<String>that is associated with a message in the queue
- The
-
callbackreturns the status of the call to the REST API