If you have a queue that throttles that rate at which messages can move into the ready queue, when message(s) for that queue are ticked out of the singleton wheel, they can block the reinsertion of subsequently ticked messages because the insertion call is "blocking" (puts back pressure on) the caller. That's fine in the hot path where the insertion is coupled with the incoming protocol session, but for the wheel tick we need to guarantee that we're making progress with the rest of the messages. This commit breaks apart the ticked batch by queue and spawns a new tokio task per queue. That way a throttle on any given queue will only affect the rest of the messages in that particular queue (which it will do anyway), and not prevent the other queues from making progress.
KumoMTA
KumoMTA is an open-source Message Transfer Agent (MTA) designed for high-performance outbound email functionality, similar to commercial enterprise MTAs such as Momentum, PowerMTA, and Halon.
The KumoMTA project was founded by a group of email industry veterans with decades of experience building and managing high-performance On-Prem MTAs and is supported by a community of some of the largest senders in the world.
Because it is designed for high-performance sending environments, KumoMTA is for experienced email operations professionals who are accustomed to high-performance sending environments and familiar with DevOps practices.
Learn more in our FAQ and at https://kumomta.com/.
Documentation
You can learn more about KumoMTA from the Documentation.
Community
Real-time discussion is available on Our Discord.
Developers
If you are interested in contributing/extending KumoMTA, take a look at DEVELOPERS.md. The #devel channel on Our Discord is for contributors to discuss KumoMTA development.
Reporting Bugs
See How to Report Bugs.
Getting Help
See How to Get Help. For paid support see https://kumomta.com/support.
Getting Updates
You can subscribe to updates at https://kumomta.com/subscribe, we send updates periodically and will never sell nor share your information.
Talk to Us
We're available to talk about the project, book us at https://cal.com/team/kumomta/talk-with-kumomta.