Skip to content

Instantly share code, notes, and snippets.

@aurimasniekis
Created March 23, 2014 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aurimasniekis/9726736 to your computer and use it in GitHub Desktop.
Save aurimasniekis/9726736 to your computer and use it in GitHub Desktop.
The main design:
* Many ways to communicate between process such as Sockets, Streams, Fifo, 0MQ, RabbitMQ (I choose driver approach)
* A posix signal handler class to wich you can assign handler for signals and other stuff like send signal to process
* A packet handler which will handle packets sent between processes and trigger handlers to respond to signals. For e.q. ReloadConfig handle will trigger process to reload config
* A connection class wich will have a driver assigned to it and all pids and other stuff witch related to IPC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment