Skip to content

Instantly share code, notes, and snippets.

@skaes
Created October 18, 2014 18:23
Show Gist options
  • Save skaes/26a5582aed698ac74281 to your computer and use it in GitHub Desktop.
Save skaes/26a5582aed698ac74281 to your computer and use it in GitHub Desktop.
/*
* connections: n_w = NUM_WRITERS, n_p = NUM_PARSERS, "<" = connect, "o" = bind
*
* controller
* |
* PIPE
* PUSH PULL | PUSH PULL
* subscriber o----------> parser(n_p) <-------------o request_writer(n_w)
*/
// Q: Why do we connect to the writers instead of connecting the writers to the parser?
// A: I think this upside down, but was maybe caused by dropped requests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment