Skip to content

Instantly share code, notes, and snippets.

@StanAngeloff
Last active August 29, 2015 14:14
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 StanAngeloff/e3f987db5015318fd875 to your computer and use it in GitHub Desktop.
Save StanAngeloff/e3f987db5015318fd875 to your computer and use it in GitHub Desktop.
QueueOrderEvidenceCollectionHandler (subscribes to 'order.paid' event)
-> push OrderEvidenceCollectionJob to queue (Resque)
-> worker pulls OrderEvidenceCollectionJob from queue
-> publish CollectOrderEvidenceCommand over command bus (RabbitMQ)
-> let handler perform actual work and delegate to collectors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment