-
Notifications
You must be signed in to change notification settings - Fork 9
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
Ignored Resend rate limiting, Laravel failover configuration doesn't work #61
Comments
Hey @MrMarci666, apologies for getting on to this one so late. I believe this could be caused by versions of the library prior to PR #58 or prior to If you upgrade to the latest version, this should be fixed. Let me know how it goes. |
@jayanratna Thanks for the reply. Sounds good! :) But the main issue still remains I assume... That the package is basically ignoring a very core function of the API, the rate limitation. |
That is something I am currently investigating. I'm wondering what the best way to expose the rate limit information would be. Currently there is a functionality to expose the ID of the sent email with the |
I'm having this same problem and I'm using version 0.14.0. Is there a solution yet? |
I have a soluction for now.
|
Did you ask resend to up your rate limit, they upped mine massively and then I just use a middleware restriction for 'resend-emails' thats massively under that limit (resend set it to 250/s and I'm using 50/s) Could be as simple as that now and quicker than queuing up for so long? |
Intro
Hello there,
We experienced many issues with this package, because it is simply ignoring the rate limitation of Resend.
We are using a "Failover" configuration in Laravel 11.
Expected behaviour
I expect when I want to send out E-Mails using Resend mail driver in Laravel, it should work. If Resend has a built-in 2 requests per second rate limit, and also rate limit information response headers, the package should be prepared to read and use this information, and send out the mails via Resend correctly.
Also, if the requests fails, Laravel should use the next E-Mail sending method configured in the
failover
configuration. I am not sure that this is a Laravel issue or a Resend package issue, but it doesn't work right now, if the response is 429 from Resend, Laravel won't try to send out with the next configured E-Mail sender.Issue description, screenshots
So we just released a webshop with around 15.000 users and wanted to send them a Password Change E-Mail. However, this resulted with a disaster that the Resend API responded with 429 in many cases, and Laravel didn't try to send it out with the failover SMTP server, it just threw an error... 👎
The text was updated successfully, but these errors were encountered: