Httpsqs (HTTP? Simple? Queue? Service) is a lightweight, open source simple Message Queuing service based on the HTTP Get/post protocol that uses the B+tree Key/value database of the Tokyo Cabinet to make persistent storage of data.
The queue is also called the FIFO table (first-in-out), which is the element that enters the queue first, and is first removed from the queue. The part of the element is called "Team Head" and the end of the element is called "Team Tail". Message Queuing is a good way to handle data transfer and storage asynchronously, and when you frequently insert data into a database and submit data to a search engine frequently, you can take Message Queuing to insert asynchronously. In addition, the slow processing logic, the processing logic with concurrent quantity limit, can be processed in the background through message queue, such as FLV video conversion, sending SMS, sending e-mail, etc.
1, HTTPSQS has the following characteristics:
Very simple, based on the HTTP Get/post protocol. PHP, Java, Perl, Shell, Python, Ruby and other programming languages that support the HTTP protocol can be called.
Very fast, in-queue, out-of-queue faster than 10,000 times/second.
High concurrency, support tens of thousands of concurrent connections,c10k is not a problem.
Multi-queue support.
The maximum number of queues supported by a single queue is up to 1 billion.
Low memory consumption, massive data storage, storage of dozens of GB of data in less than 100MB of physical memory buffers.
You can easily modify the maximum number of queues for a single queue without stopping the service.
You can view the status of the queue in real time (into queue location, out queue location, number of unread queues, maximum number of queues).
You can view the contents of the specified queue ID (queue point), including the contents of the queue that are not out and out.
Multiple character set encoding is supported when viewing the contents of a queue.
The source code is not more than 700 lines, suitable for two times development.
Simple Message Queuing service HTTPSQS