Created
March 16, 2016 03:19
-
-
Save meson10/13e7fcea9f4b05b1af83 to your computer and use it in GitHub Desktop.
Sample gilmour implementation in Ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dc_pipeline = responder.compose([ | |
{ topic: 'private.customer.datacenter.create', message: data }, | |
{ topic: 'private.validate' } | |
]) | |
nodes_pipeline = responder.compose([ | |
responder.parallel([ | |
{ topic: 'private.customer.logger.create', message: data, | |
opts: { timeout: 900} }, | |
]), | |
->(d) { d.reduce({}) { |m, out| m.merge(out[:data]) } }, | |
{ topic: 'private.validate' } | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment