News for hackers. Stuff that matters.
Re:Why Uber Engineering Switched from Postgres to MySQL by nine_k on Tuesday July 26, 2016 @02:41PM (#12167848)
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).

Re:Why Uber Engineering Switched from Postgres to MySQL by jedberg on Tuesday July 26, 2016 @02:50PM (#12167918)
True, 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.
Re:Why Uber Engineering Switched from Postgres to MySQL by nine_k on Tuesday July 26, 2016 @03:26PM (#12168145)
Yes, the whole point is to avoid building your own queue where a ready-made, purpose-made solution already exists.
Re:Why Uber Engineering Switched from Postgres to MySQL by jedberg on Tuesday July 26, 2016 @03:44PM (#12168269)
Well 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.