项目作者: Syfract

项目描述 :
The simplest Message Queue server in Python
高级语言: Python
项目地址: git://github.com/Syfract/simple-queue-server.git
创建时间: 2020-05-03T18:31:46Z
项目社区:https://github.com/Syfract/simple-queue-server

开源协议:MIT License

下载


The simplest Message Queue server

This is only for testing purposes.

Prerequisites

  • Python 3

Run

Simply run it with a port,

On Linux:

  1. ./main.py [<port>]

Or on Windows:

  1. python ./main.py [<port>]

Usage

Assuming it is run locally on port 8000 (default).

To push a new message:

  1. curl -H 'Content-Type: text/html' -d '{"submission_id":5}' \
  2. localhost:8000/push/queue_name

Note: You can send anything in the body and it will be
pushed into the queue as a string, regardless of
the content-type header since it is simply ignored.

To pull a message:

  1. curl localhost:8000/pull/queue_name