This could be solved an even more fundamental way: Don't run your own mailer as a startup. There are lots of companies that will be responsible for email deliverability on your behalf, via an API. If it took them 3 months to notice no mail was being sent at all, imagine how long it's going to take them to figure out that their IP is blacklisted in Spamhaus or any number of other deliverability issues?
Not everyone wants to outsource transactional mail handling to a third party.
Startup Fuck-ups: How we lost 25% of our monthly revenue overnight
51–60 of 60 posts
Re: Startup Fuck-ups: How we lost 25% of our monthly revenue overnight
#52Earlier quoted context omitted.
I don't care what language they use, personally. However I am at work and having the F-word in 72pt font blaring from the top of my browser made scroll down very quickly. I doubt my bosses would be thrilled to see that.
Man, I'm sorry, but what sort of job do you have where seeing the word "Fuck" is like an actual job risk?
Re: Startup Fuck-ups: How we lost 25% of our monthly revenue overnight
#53That's not "transactional email". That's spam.
You're a spammer. Die.
Re: Startup Fuck-ups: How we lost 25% of our monthly revenue overnight
#54Earlier quoted context omitted.
>> The email providers I have used don't make this easy so it is usually better to run the server yourself. Mandrill, Mailgun, Sendgrid all make this easy.
It has been a few years since I have been saddled with email responsibilities so it's not surprising I am a little behind the times. But it still doesn't mean you shouldn't be checking that customers are receiving your emails.
Re: Startup Fuck-ups: How we lost 25% of our monthly revenue overnight
#55What we found was that a number of failed jobs were being kept by the system, which meant that these were taking up a ton of space that they shouldn’t have been. To fix the issue, we put together a script to delete the failed items, since any retries to send them didn’t appear to work. At this point my head was screaming "NOOOOooooo!" and made me feel bad for author for the whatever disaster would soon follow. Not on…
Re: Startup Fuck-ups: How we lost 25% of our monthly revenue overnight
#56Hope they're monitoring their backups.
Re: Startup Fuck-ups: How we lost 25% of our monthly revenue overnight
#57As someone who has created quite a few of these mailers, the queue getting stuck on a single piece of mail and hanging indefinitely is incredibly common. As time has gone on my solutions have become simpler and more pragmatic, since additional complexity breads additional problems. For example, if I was going to design an emailer today: -Grab the email from a database save it to a file (likely one or several XML file…
File system based queues. Point-to-point data interchange, so no concurrency; your notion of imprinted work tasks with PIDs is a good idea.
I used a "pull" model. A thread would take work from one directory and drop into another. Poor man's workflow. Worked great. Super easy to monitor and troubleshoot.
Using Java, implementing the cross platform file locking (so a downstream process wouldn't pull a task before it was ready) took some finesse, a small caveat.
Re: Startup Fuck-ups: How we lost 25% of our monthly revenue overnight
#58As someone who has created quite a few of these mailers, the queue getting stuck on a single piece of mail and hanging indefinitely is incredibly common. As time has gone on my solutions have become simpler and more pragmatic, since additional complexity breads additional problems. For example, if I was going to design an emailer today: -Grab the email from a database save it to a file (likely one or several XML file…
Sounds like you just recreated Microsoft Biztalk. But to sound less like a dick - communicating with a low probability of errors is hard !
Someone1234's solution is the antithesis of BizTalk, the complete refutation of the ultimate futility of using workflow engines.
Re: Startup Fuck-ups: How we lost 25% of our monthly revenue overnight
#59Why, in 2014, are people still not monitoring everything as job #1?
Why isn't this being taught in schools? How do people with tech jobs not know this?
Re: Startup Fuck-ups: How we lost 25% of our monthly revenue overnight
#60This could be solved an even more fundamental way: Don't run your own mailer as a startup. There are lots of companies that will be responsible for email deliverability on your behalf, via an API. If it took them 3 months to notice no mail was being sent at all, imagine how long it's going to take them to figure out that their IP is blacklisted in Spamhaus or any number of other deliverability issues?
I don't entirely agree with this. I don't use my own mailer currently. I DO, however, use postfix to queue and relay email to rackspace, who actually sends my email. I don't think the API method is appropriate because then you need to run some other queue system so your app has an instant response time for the user. Their action would create a queue entry (with whatever data) that will eventually be fired off as an A…