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

Refactor webhook URL usage to be more scalable #9

Open
SaxyPandaBear opened this issue Dec 29, 2021 · 1 comment
Open

Refactor webhook URL usage to be more scalable #9

SaxyPandaBear opened this issue Dec 29, 2021 · 1 comment

Comments

@SaxyPandaBear
Copy link
Owner

As of right now, how the food webhook works is it pulls a single webhook URL from the environment variable. This should be rewritten to be able to handle an arbitrary number of webhook URLs, though this is not meant to target other webhook destinations, just the ability to push to multiple discord webhooks simultaneously.

Proposition is to use a Postgres db (I believe 10k rows is free with heroku postgres) to store webhook urls.

@SaxyPandaBear
Copy link
Owner Author

Alternative is to load a json string into the env var. Using a Postgres db is definitely overkill and adds a lot of latency to any webhook for the db connection

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

1 participant