simplehttp
simplehttp
is a family of libraries and daemons built upon libevent that make high performance HTTP servers
simple and straightforward to write.
The following libraries and daemons are included:
buffered_socket
- a simple abstraction on bufferevent for arbitrary TCP socketsdomain_socket
- an async C library for creating, listening, and communicating over unix domain socketshost_pool
- a library for dealing with endpoint selection, pooling, failure, recovery, and backoffprofiler_stats
- a library to track arbitrary profiler timings for average, 95%, 99%, 100% timeps_to_http
- a daemon built on top of pubsubclient to write messages from a source pubsub to destination simplequeue or pubsub serverps_to_file
- a daemon built on top of pubsubclient to write messages from a source pubsub to time rolled output filespubsub
- a daemon that receives data via HTTP POST events and writes to all subscribed long-lived HTTP connectionspubsub_filtered
- a pubsub daemon with the ability to filter/obfuscate fields of a JSON messagepubsubclient
- a library for writing clients that read from a pubsubpysimplehttp
- a python library for working with pubsub and simplequeueqrencode
queuereader
- a library for writing clients that read from a simplequeue and do worksimpleattributes
simplegeo
simplehttp
simpleleveldb
- a HTTP CRUD interface to leveldbsimplememdb
- an in-memory version of simpletokyosimplequeue
- an in memory queue with HTTP /put and /get endpoints to push and pop datasimpletokyo
- a HTTP CRUD interface to front tokyo cabinet's ttserversortdb
- sorted database server
simplehttp Install Instructions
to install any of the simplehttp components you will need to install libevent 1.4.13+ and the 'simplehttp' module first.
build the main library this provides libsimplehttp.a simplehttp/simplehttp.h and simplehttp/queue.h
cd simplehttp
make && make install
now install whichever module you would like this will compile 'simplequeue' and place it in /usr/local/bin
cd simplequeue
make && make install
Some modules have additional dependencies:
pysimplehttp Install Instructions
pip install pysimplehttp
provides file_to_sq.py
and ps_to_sq.py
. It will use ujson if available.