-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature -- Message Queue #686
Conversation
public/submissionConsumer.php
Outdated
$consumer = new Consumer($router, new EventDispatcher()); | ||
$consumer->consume($factory->create('do-submit')); | ||
$submission_service->register($queue); | ||
$queue->consume($submission_service->getConsumerName(), ['max-runtime' => 0.1]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zackgalbreath let's discuss; I'm curious how we want to implement in a production environment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Let's test this out in the wild before merging to make sure it works as intended.
+1 |
* 5. Produce the message (send it to the queue) | ||
* $queue->produce($message); | ||
* | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for thoroughly documenting all the ins and outs of naming your own queue.
Also fixes regression in SubmissionService::register Adds regression test
No description provided.