Plain Ticket

Plain ticket is a message queue for Google App Engine applications. It allows you to have publishers that post tickets and consumers that recieve them. It allows push or pull model for consuming tickets. It has a RESTful api.

RESTful Ticket API

Publishing

There is no signup, just make sure appname is likely unique! The appname is your secret key. Post body is text that will be sent to the consumer.

POST /ticket/:queue

Consuming

Consumers can either poll or register for a call back. Either message you let the queue know that you are done by sending an acknowledgement that you are done with the ticket.

Polling

You periodically call to see if there are any tickets available. The response is either 302 if no tickets available or a 200 with the body being a response with the ticket id in the X_TICKET_ID http header. This id is used to acknowledge the ticket after successful processing.

GET /ticket/:queue

Callback

If your service is not firewalled, you can register a callback for faster response time and overall greater effeciency. Send a post to subscribe to a queue with the body being the callback url.

POST /consumer/:queue

Acknowledge

When you are successful with a ticket, post back an acknowoledgement to remove the ticket from the system.

POST /ack/:ticket_id