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

Rate Limit #3

Closed
matheus-lucena opened this issue Jun 11, 2020 · 1 comment
Closed

Rate Limit #3

matheus-lucena opened this issue Jun 11, 2020 · 1 comment
Labels
support Someone needs help

Comments

@matheus-lucena
Copy link

There is some way to create a rate limit in the execution of the SQS, because I have a queue that processes sending email via SES, however I have a limitation of sending emails per second.

@mnapoli mnapoli added the support Someone needs help label Jun 11, 2020
@mnapoli
Copy link
Member

mnapoli commented Jun 11, 2020

One solution is to throttle the Lambda by setting its reservedConcurrency setting in serverless.yml (for example to 5). That limits the number of Lambda instances (i.e. Laravel workers) that will run concurrently.

Here is a visual explanation: https://twitter.com/matthieunapoli/status/1239960297529622528 I'm currently working on a book that explains all of this, but in the meantime maybe the tweet can help.

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

No branches or pull requests

2 participants