News for hackers. Stuff that matters.
Re:A serverless email server on AWS using S3 and SES by throwaway894345 on Friday April 30, 2021 @10:14AM (#26993735)
> serverless server?

This isn’t a contradiction. “Server” is an overloaded term and the “server” in “serverless” refers to a different meaning of “server” than the “email server” bit. “Serverless” means there is no physical or virtual hosts to manage, you just supply the request handler i.e., the email server. It's amusing because it sounds like a contradiction, but it's not one.

Re:A serverless email server on AWS using S3 and SES by mgkimsal on Friday April 30, 2021 @12:04PM (#26995230)
"means there is no physical or virtual hosts to manage"

We're just swapping one type of management for another, really. Becoming proficient in all the permutations of AWS stack, for example, to

* make sure you don't get overbilled,

* have appropriate memory/limit resources on your lambdas,

* have correct backup/redundancy on s3,

* make sure all your IAM policies are correct and not allowing malicious actors, etc.

and more... it's ... just a different set of things to worry about. Yay - I don't have a 'server' that can go down. I now just have to make sure I don't get billed $87k because I forgot to click the correct button.

Re:A serverless email server on AWS using S3 and SES by kixiQu on Friday April 30, 2021 @01:38PM (#26996658)
Billing exists for servers as well.

Servers need to be configured as do lambdas.

Servers also have backup needs.

Servers also present security problems of access.

It's not that hard to configure a lambda to run in just as limited a way as a physical machine.

Not having to worry about MCEs or disk failure patching makes the concerns less like a "different set" and more like a subset of things to worry about relative to managing servers.

I know most of this stuff is really well trod-over, but from your comment I think one'd get the impression that people are switching just because of a trend or something, not because there's an actual layer of management they're paying to have outsourced.

(I would acknowledge that view of it being a subset rather than a different set is invalid once you're debugging performance at a gritty level, where cold starts etc. etc. introduce their own equivalent layer of complication, but most people doing most things never need to)

Re:A serverless email server on AWS using S3 and SES by twistedpair on Friday April 30, 2021 @02:30PM (#26997418)
Amen.

How many times did you update your Node.js AWS Lambdas or GCP Cloud Functions because of the Linux kernel CVE of the week? You didn't because all you're responsible for is your few lines of Node.js logic that kept on scaling and humming along. The cloud vendor cares for the rest.

Re:A serverless email server on AWS using S3 and SES by vinay_ys on Friday April 30, 2021 @02:54PM (#26997712)
Just because you didn't doesn't mean they did and you didn't actually have any vulnerabilities. There is no such provable attestation of security in serverless model.
Re:A serverless email server on AWS using S3 and SES by throwaway894345 on Friday April 30, 2021 @04:05PM (#26998597)
> Lambda provides support for these runtimes by continuously scanning for and deploying compatible updates and security patches, and by performing other runtime maintenance activity.

https://docs.aws.amazon.com/whitepapers/latest/security-over...

I'm not sure if that addresses your concern (maybe you're worried they're lying or they have a bug in their process)?

Re:A serverless email server on AWS using S3 and SES by twistedpair on Friday April 30, 2021 @02:27PM (#26997363)
Cloud 2.0 "serverless" often expects:

- Just add code/logic

- Scales to zero (zero calls to your endpoints, $0/mo)

- Scales up automagically to match load

- You don't do anything to provision/patch servers (e.g. FaaS)

Classic PHP shared hosts don't meet this definition because:

- You paid a flat monthly hosting fee (e.g. Dreamhost)

- You only scaled to 1 node (need more, too bad)

True, you didn't usually need to mess with PHP.ini or Apache server installs and configs, but you still didn't get the same benefits as modern serverless.

Re:A serverless email server on AWS using S3 and SES by antihero on Friday April 30, 2021 @03:34PM (#26998214)
I wonder if you could, for reasons, make a set-up where you upload your PHP files to an S3 bucket, and then have a API Gateway or Lambda which basically just serves the files from the bucket, and if they are PHP, executes them with a Lambda PHP runtime.

So you hit /index.php -> checks S3 bucket for index.php -> executes that with lambda and gets string of response -> returns it to original lambda -> serves up to client.

Re:A serverless email server on AWS using S3 and SES by throwaway894345 on Friday April 30, 2021 @04:56PM (#26999203)
I'm a little confused about why you're responding to me. I think I agree with everything you're saying, but I'm not sure where the comparison with PHP hosting is coming from. Are you sure you responded to the right thread?
Re:A serverless email server on AWS using S3 and SES by megous on Friday April 30, 2021 @02:06PM (#26997080)
It's indistinguishable from a regular web hosting. You just upload script to some ftp and don't manage anything either. You just configure links to other services like DNS, or DB if that's needed.

It's just now the same thing is done via some proprietary/custom cli tools and/or APIs not via a standard protocol and a trusty old clients that are already in your distro, and it's branded differently.

APIs are good for some uses. That's usually lacking with hosting providers. Other than auto-scaling I can also easily bankrupt myself with if I make a mistake, I don't see much qualitative difference. Only in the details.

Re:A serverless email server on AWS using S3 and SES by xdennis on Friday April 30, 2021 @12:57PM (#26996031)
> “Serverless” means there is no physical or virtual hosts to manage

While true, that's not the defining characteristic of "Serverless" because PaaS also does not require server management.

Re:A serverless email server on AWS using S3 and SES by darkwater on Friday April 30, 2021 @10:49AM (#26994152)
> This isn’t a contradiction.

Yes it is. The "server" in "serverless" means no need to low-level manage/provision a server (computer) and its lifecycle. While "server" in "A serverless email server" means actually "service" as in "A serverless email service on AWS using S3 and SES". Which makes much more sense. The linked repo lets you have an "email server" just like GSuite gives you a "serverless email server".

Re:A serverless email server on AWS using S3 and SES by throwaway894345 on Friday April 30, 2021 @11:21AM (#26994581)
I don't understand. You insist it's a contradiction but then go on to reiterate my own argument which demonstrates that it is not, in fact, a contradiction but rather using the same term ("server") to refer to two distinct concepts ("computer" vs "service")?
Re:A serverless email server on AWS using S3 and SES by darkwater on Saturday May 01, 2021 @06:12AM (#27004987)
It's a contradiction because it's an incorrect overload of the word "server".
Re:A serverless email server on AWS using S3 and SES by throwaway894345 on Saturday May 01, 2021 @07:15PM (#27010810)
Well, Oxford English Dictionary disagrees with you.
Re:A serverless email server on AWS using S3 and SES by cortesoft on Friday April 30, 2021 @11:08AM (#26994412)
So if you get an omelette at a restaurant, I can call it an eggless omelette because I didn’t have to cook the eggs myself?
Re:A serverless email server on AWS using S3 and SES by throwaway894345 on Friday April 30, 2021 @11:35AM (#26994793)
This would make a lot of sense if the de-facto restaurant experience involved you cooking your own eggs, especially if the egg-cooking experience was notoriously laborious and expensive.

If we swap "egg" and "cooking" with "VM" (or "bare metal" if it suits you better) and "maintaining", suddenly "serverless" doesn't sound so ridiculous.

Re:A serverless email server on AWS using S3 and SES by fxleach on Monday May 03, 2021 @10:45AM (#27025715)
No no, it still sounds ridiculous.
Re:A serverless email server on AWS using S3 and SES by mypalmike on Friday April 30, 2021 @09:22PM (#27001929)
Agile isn't really agile. Cloud computing isn't really in clouds. Personal computers aren't that personal. Serverless isn't really serverless. Who cares.
Re:A serverless email server on AWS using S3 and SES by unethical_ban on Friday April 30, 2021 @05:09PM (#26999371)
If "egg" was an overloaded term that meant the noun "egg" and the noun "process of cooking an egg for an omelette", then yes, you could.
Re:A serverless email server on AWS using S3 and SES by stonesweep on Friday April 30, 2021 @10:33AM (#26993969)
I disagree with your assessment, email is a service and not a server. A service can run on a server, or ephemerally as in this article (which still has servers underneath it, you're just not running them). S3 and SES are services running on servers.
Re:A serverless email server on AWS using S3 and SES by throwaway894345 on Friday April 30, 2021 @11:13AM (#26994467)
> email is a service and not a server.

Those aren't mutually exclusive, which is my whole point. One definition of "server" is "a service in a network". Another definition is "a computer in a network". So you can have a server running on a server without contradiction. If the user isn't responsible for managing the underlying computer, then you have a serverless server.

> which still has servers underneath it, you're just not running them

Of course, "serverless" means you don't have to worry about the underlying servers, not that they don't exist. Perhaps you were only clarifying and not nerd-sniping, but this particular nit is so boring and predictable in every serverless thread.

Re:A serverless email server on AWS using S3 and SES by stonesweep on Friday April 30, 2021 @11:18AM (#26994538)
> One definition of "server" is "a service in a network"

Can you link to something where this is a common accepted definition? I'm a systems engineer by trade, talk to a bajillion people about all sort of things and we just don't call a "service in a network" a server in parlance.

I was not nerd-sniping and could care less about serverless as a term, I'm specifically talking about calling a "service" a "server" in this chat. I feel this is presenting something as accepted definition which does not match my experience in the field.

Re:A serverless email server on AWS using S3 and SES by throwaway894345 on Friday April 30, 2021 @11:32AM (#26994758)
> Can you link to something where this is a common accepted definition? I'm a systems engineer by trade, talk to a bajillion people about all sort of things and we just don't call a "service in a network" a server in parlance.

This seems to be a common point of confusion for people who aren't native English speakers. Oxford English Dictionary defines "server" as:

> a computer or computer program which manages access to a centralized resource or service in a network.

Similarly, a quick bit of Googling turned up [this][1] which isn't authoritative, but indicates that "server" can mean either hardware, VM, or software services.

[1]: https://stackoverflow.com/a/13118205/483347

Re:A serverless email server on AWS using S3 and SES by stonesweep on Friday April 30, 2021 @11:42AM (#26994909)
> This seems to be a common point of confusion for people who aren't native English speakers

Where did this come from and what value does it have, other than being condescending to non-native English speakers? I am a native speaker and we're having a discussion in my native tongue about words in my native language about work I do as a profession.

> Similarly, a quick bit of Googling turned up [this][1]

I do not accept Stackoverflow as an authoritative source for anything. Useful? Yes, great for finding random solutions to random problems. Authoritative source on terminology used in the industry I work? Nah.

Re:A serverless email server on AWS using S3 and SES by Liquid_Fire on Friday April 30, 2021 @12:00PM (#26995169)
I'm surprised you need a source for this. Literally half of the server software out there refers to itself as "<thing> server".

Apache [1] "The Number One HTTP Server On The Internet". This is not referring to the machine hosting, it's referring to the software that you run to provide a service.

Postfix [2] "mail server"

IIS [3] "Web server"

I could go on...

[1] https://httpd.apache.org/

[2] http://www.postfix.org/

[3] https://www.iis.net/

Re:A serverless email server on AWS using S3 and SES by reaperducer on Friday April 30, 2021 @12:10PM (#26995311)
Where did this come from and what value does it have, other than being condescending to non-native English speakers?

I don't think he was being condescending, so there's no need to be offended on behalf of other people.

I think he was suggesting that part of the linguistic confusion comes from how the tech industry has become so global that different words and phrases are exchanged between cultures, but within the tech sphere.

For example, it's not uncommon to hear the phrase "Do the needful" in places like Seattle, even though the phrase originated elsewhere and was imported by tech workers.

I do not accept Stackoverflow as an authoritative source for anything.

Good call. I'm with you there.

Re:A serverless email server on AWS using S3 and SES by throwaway894345 on Friday April 30, 2021 @12:12PM (#26995339)
> Where did this come from and what value does it have, other than being condescending to non-native English speakers?

What is condescending? I'm observing that it's a common problem among non-native English speakers. It seems like you're taking offense on behalf of others and unduly so.

> I am a native speaker and we're having a discussion in my native tongue about words in my native language about work I do as a profession.

This is a common idiom among English-speaking IT professionals. If you're not familiar, that's fine. Now you know.

> I do not accept Stackoverflow as an authoritative source for anything

In a minute of Googling, I found several random sources on the Internet that indicate that the term is overloaded precisely as I described. One of those sources was the Oxford English Dictionary. I think that suffices to demonstrate that this is a common idiom, but I can't force you to be persuaded. ¯\_(ツ)_/¯

Re:A serverless email server on AWS using S3 and SES by mypalmike on Friday April 30, 2021 @09:24PM (#27001939)
Accept the L.
Re:A serverless email server on AWS using S3 and SES by stonesweep on Saturday May 01, 2021 @03:34PM (#27009121)
Nah. +4 for the thread after adding up the down/up votes. I dipped out, the conversation held no further value to continue to me especially after being told "well it's an idiom you just don't understand". No minds will be changed, no positive outcome will happen from continuing.
Re:A serverless email server on AWS using S3 and SES by imwillofficial on Friday April 30, 2021 @10:50AM (#26994165)
You are incorrect, see man pages.
Re:A serverless email server on AWS using S3 and SES by stonesweep on Friday April 30, 2021 @11:14AM (#26994483)
This makes no sense (too abstract of a statement), but here let's try this:

    $ man systemd | head -4 | tail -1
       systemd, init - systemd system and service manager
An email daemon (Postfix, Exim, Dovecot, UW-IMAP, Sendmail, etc.) are services running on a server. An "email server" would be a server running a daemon to provide email service in this example.
Re:A serverless email server on AWS using S3 and SES by ape4 on Friday April 30, 2021 @11:20AM (#26994576)
This makes me think there should be a Linux tool to extract the Nth line of a file. With options to get the N-Mth lines, etc
Re:A serverless email server on AWS using S3 and SES by ipaddr on Friday April 30, 2021 @11:37AM (#26994836)
There are many. Sed is fast. This will give you lines 11 to 500

sed -n '11,500p' < file.txt

Re:A serverless email server on AWS using S3 and SES by stonesweep on Friday April 30, 2021 @11:24AM (#26994616)
Man pages can be tricky as the content can vary distro by distro (how up to date is your copy of man-pages, what changes have happened, etc.) - this technique is pretty portable to extract the synopsis of a man page specifically due to the format it uses (most times I'd use like grep -A3 -B2 foo /some/file, e.g.).
Re:A serverless email server on AWS using S3 and SES by ape4 on Friday April 30, 2021 @11:36AM (#26994819)
Ugly way to get the first indented line: `man systemd | grep '^ ' | head -1`

Which is the summary

Re:A serverless email server on AWS using S3 and SES by mprovost on Friday April 30, 2021 @01:43PM (#26996734)
Calling cut with a newline as the field delimiter works:

man systemd | cut -d $'\n' -f 4

Works with multiple lines too:

cut -d $'\n' -f 10-20,50-60

Re:A serverless email server on AWS using S3 and SES by imwillofficial on Friday April 30, 2021 @06:38PM (#27000393)
Makes plenty of sense: https://man7.org/linux/man-pages/man1/smtp.1.html

"SMTP transaction against an SMTP server"