Skip to content
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

[QUESTION]: Deploying to productioin #60

Closed
welsipieters opened this issue Nov 24, 2020 · 5 comments
Closed

[QUESTION]: Deploying to productioin #60

welsipieters opened this issue Nov 24, 2020 · 5 comments

Comments

@welsipieters
Copy link

Hi!

First of all, thanks for this package. I've been using it for a couple days now across various microservices and it works very nicely.

I'm wondering though, how you suggest deploying this to production? Within our platform we're talking about thousands of events across services. Having to provide a event.name within the php artisan rabbitevents:listen command just seems 'unrealistic' (for lack of a better word) in this scenario.

What would be your thoughts on this, and would you perhaps be open to a merge request from me for such functionality?

Cheers!

@welsipieters welsipieters changed the title Deploying to productioin [QUESTION]: Deploying to productioin Nov 24, 2020
@masterjus
Copy link
Contributor

masterjus commented Nov 25, 2020

Hi Wesley

We also have many events on our projects but we easily manage them by Supervisor. Our configuration is pretty similar to this https://laravel.com/docs/8.x/queues#supervisor-configuration. I don't know what deployment system are you using, but this is a good solution to deploy supervisord configs https://docs.ansible.com/ansible/2.4/supervisorctl_module.html to your servers.

You also could use wildcard events if you wish.

And... if you like our package, feel free to add a star to it :)

@masterjus
Copy link
Contributor

@welsipieters

@welsipieters
Copy link
Author

Hi Eugene,

Pardon my late reply. The wildcard events will do for my use case. Out of curiosity, could you give me an anonymized example of your supervisord configuration? (and in your case whatever you pass to supervisorctl) Perhaps that would help me navigate the waters a bit better.

Perhaps it would be an idea to add an (opinionated?) section to the README.md on how to deploy this to production in a sensible and manageable way? I could potentially see this growing into a jungle of events if not careful, haha.

Cheers!

@masterjus
Copy link
Contributor

Hi Wesley

We've created a config file per project in the /etc/supervisord/conf.d/ folder and supervisord automatically load them.

We suggest reading official Laravel documentation before :) But maybe you're right and we need to add this section.

@masterjus
Copy link
Contributor

As there's no activity, I'm closing this Issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants