3 ms·
Sending an email to a local MTA should be pretty fast. That is, if you cannot and will not do async stuff in your program, there are ready-made tools that will
by nine_k 10y ago
Sending an email to a local MTA should be pretty fast.
That is, if you cannot and will not do async stuff in your program, there are ready-made tools that will do that particular thing asynchronously for you, and have been doing so for years (or even decades).
- jedberg 10y agoTrue, but really your local MTA is just acting like a specialized queue, since the first thing it will do is send the message to your relay.
- nine_k 10y agoYes, the whole point is to avoid building your own queue where a ready-made, purpose-made solution already exists.
- jedberg 10y agoWell there are pros and cons. If you have already have a queue structure set up in your environment, it may not be a good idea to have to maintain a second queue structure in the form of a bunch of local MTAs. You'll need monitoring (how many messages are queued in each local MTA?) and a way to keep those MTAs up to date. If you just put an item in to a queue, and then have a specific cluster of machines that does nothing but grab items from that queue and push them through an email infrastructure, then it'll be a lot easier to maintain.