-
Notifications
You must be signed in to change notification settings - Fork 22
Description
Is there a way to implement rate limiting / throttling on the number of mails sent per second? The Symphony AbstractTransport class has a setMaxPerSecond method which sets a rate public property, but I don't think that would have any impact here.
I'm running into a problem where emails are failing with:
503 Service Unavailable response:
{"error":
{"code":"ResourceUnhealthy","message":"MdbReplicationProtectionUtilizationMonitor is unhealthy."}
}
I've contacted Microsoft support and they tell me this is due to sending too many requests, essentially the same as a 429 error.
Microsoft provides some info on how to handle this here: Best Practices essentially using the Retry-After header, but I don't know if this is something that can be implemented with this mail driver.
Any advice is much appreciated.