Live data from Hacker News

A serverless email server on AWS using S3 and SES

github.com

261–266 of 266 posts

Re: A serverless email server on AWS using S3 and SES

#261

Earlier quoted context omitted.

> As if the time to manage servers is free. I work in projects which make heavy use of function-as-a-service, and I have first-hand accounts of how FaaS offerings have lead developers to waste a couple of weeks getting FaaS to do what could have been done in a couple of hours with a tried-and-true web service. > But lambda is far from expensive. Relatively to the cost of a VM instance? Yes, it's expensive. We're in a…

I'd rather be on call for a serverless system than otherwise. Getting paged at 2am because some log file filled up a disk, or a million other details that your "couple of hours" solution didn't take into account? No thanks.

> I'd rather be on call for a serverless system than otherwise. Getting paged at 2am because some log file filled up a disk, or a million other details that your "couple of hours" solution didn't take into account? No thanks.

How about getting paged at 2am because somehow a lambda called by AWS step functions workflow is failing due to hitting a timeout while uploading a 20MB file to a S3 bucket? Because this is an actual real world case that happened in the real world.

Re: A serverless email server on AWS using S3 and SES

#262

Earlier quoted context omitted.

I'd rather be on call for a serverless system than otherwise. Getting paged at 2am because some log file filled up a disk, or a million other details that your "couple of hours" solution didn't take into account? No thanks.

> I'd rather be on call for a serverless system than otherwise. Getting paged at 2am because some log file filled up a disk, or a million other details that your "couple of hours" solution didn't take into account? No thanks. How about getting paged at 2am because somehow a lambda called by AWS step functions workflow is failing due to hitting a timeout while uploading a 20MB file to a S3 bucket? Because this is an a…

Well, with step functions you can have auto retry with exponential back off in case of failure. But you had a lambda that couldn’t upload a 20Mb file to S3 in 15 minutes? Whatever the issue was, you would have more than likely had the same issue with a VM. A lambda runtime environment is nothing special for all intents and purposes but a Linux VM with well known constraints - a 512MB /tmp storage, and up to a 15 minute runtime.

Re: A serverless email server on AWS using S3 and SES

#263

Earlier quoted context omitted.

We accidentally had ses credentials set up on our QA server and quickly got banned for sending too many sdf@sdf.com emails. Took quite some time to get it unbanned. Since then we switched to Mailgun for email delivery but ses is still useful for processing incoming email via Lambda

We are careful to use throwaway email addresses like randomusername @mailinator.com on our dev and staging servers so they still get delivered, but we can just forget about them. Really interested to learn about the SES simulator address though (posted as a reply on this thread) - don't know how we missed that, and it would have really helped with early testing when we were developing the email queueing system on our…

We configure all our test addresses to success@ses.amazon.com (or whatever the simulator address actually is) so we don’t spam or get banned by inadvertance

Re: A serverless email server on AWS using S3 and SES

#264
post #248

Earlier quoted context omitted.

> I've found that "I don't even get what the word is supposed to mean" is someone's first experience with tech fear. This is a gross misrepresentation of the actual problem affecting the "serverless" fad, which is the buzzword overload accompanied by a lack of objective definitions. Function-as-a-service (FaaS) is an objective, clear-cut concept, but "serverless computing" is supposed to be a more general term where…

Folks were saying the same about "the cloud" but we got used to that too.

You get used to almost anything.

"Cloud" has gotten even less specific technically as new marketing uses for it become established. What do bare metal private cloud and Google Docs have in common, anyone?

Re: A serverless email server on AWS using S3 and SES

#265
post #53

Earlier quoted context omitted.

Yep, but how can you be sure the serverless provider will never go down? I've witnessed multiple times when AWS's services went down. > If you're running a saas and the increased traffic comes from paying customers, you likely prefer a huge bill to downtime. Well, in such situation, I would probably run more advanced container orchestrators such as Kubernetes which you will then configure to automatically spawn the a…

The serverless provider can go down just like the VM provider can go down, but the key difference is that it won't go down due to traffic bursts. Auto-scaling helps, but it still takes awhile to spin up new VMs, and you'll have downtime in the meantime for sufficiently large bursts. On lock-in, in my experience with any non-trivial infrastructure you end up tied to your provider anyway. You're still going to need IAM…

This is why the important projects must be thoroughly planned and tested in order avoid non-trivial infra or a blind cat situation. And then it is a really good idea to leverage IaaC (Infrastructure as a code) which would bring the whole thing up really quick.

Re: A serverless email server on AWS using S3 and SES

#266
post #12

> This stack was created out of frustration due to the fact that to this day there's no easy way to have a full email server without the overhead of installing and configuring all servers needed to handle incoming and outgoing messages. Interesting approach, though I solved this frustration by the use of a Docker and kept "my data is mine" + "no vendor lock-in" + "I control all the gears" approach. (Though, it's not…

Have you considered: https://haraka.github.io ?

I have being running it on a instance with 1 GB ram and it is running pretty smoothly.

Post reply on HN