Skip to content

amumu-dev/simplehttp

 
 

Repository files navigation

simplehttp

simplehttp is a library built upon libevent that makes high performance http based servers simple to write.

The following daemons are built on simplehttp and included

  • pubsub - a daemon that receives data via HTTP POST events and writes to all subscribed long-lived HTTP connections
  • pubsubclient - a library for writing clients that read from a pubsub
  • ps_to_http - a daemon built on top of pubsubclient to write messages from a source pubsub to destination simplequeue or pubsub server
  • ps_to_file - a daemon built on top of pubsubclient to write messages from a source pubsub to time rolled output files
  • simplequeue - an in memory queue with HTTP /put and /get endpoints to push and pop data
  • simpletokyo - a HTTP CRUD interface to front tokyo cabinet's ttserver
  • sortdb - sorted database server
  • simplegeo
  • simplememdb - an in-memory version of simpletokyo
  • qrencode

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.

About

Simple HTTP server framework built using libevent

Resources

License

Stars

Watchers

Forks

Packages

No packages published