r/programming • • Aug 09 '16

Final version of MartinFowler.com's Serverless Architectures article

http://martinfowler.com/articles/serverless.html
16 Upvotes

45 comments sorted by

15

u/kojihugy Aug 09 '16

Anyone has anything to add, other than that incredibly boring and pedantic discussion on the name of the architecture?

4

u/awj Aug 09 '16

...that would require people to have actually used it, or at least have read the documentation with more of an interest than "what details can I find to support my assertion that this is a bad idea".

1

u/drjeats Aug 10 '16

I don't know what use cases it's good for, it just seemed annoying for what I was building, and the server component of what I was building was not that complex.

Most of our work goes into the client, so running a local server to test client/server interactions was important. Using Lambda seemed to mean duplicating routes in both the Lambda config and the code. So Elastic Beanstalk seemed a better fit.

Then the thought became, "okay I need to do a couple of cron jobs, and Lambdas seems good for that", but the Python 2.x runtimes on Lambda and Elastic Beanstalk seemed to be slightly out of sync at the time, and of course Python 3.x wasn't even available on Lambda, and I wanted to do 3.x if it was available. Also Elastic Beanstalk has cron.yaml. So...I thought I was the ideal Lambda user (really do not want to do any server management), but that ended up not being the case. EB served me better.

So what's a good use case? Glue code reacting AWS infrastructure events? Temporary projects where you just need to allocate some compute resources to a contractor? Forms that need a dash of server logic?

1

u/[deleted] Aug 09 '16

[removed] — view removed comment

2

u/MoreLurkerThanPoster Aug 09 '16

What do you think that 128MB is referring to?

11

u/jimmyhoffa523 Aug 09 '16

tl;dr: you can run a website using AWS lambda as endpoints

16

u/kenfar Aug 09 '16

or: serverless just means it's using someone else's server

3

u/CanYouDigItHombre Aug 10 '16

also; still got to write server logic

5

u/salgat Aug 09 '16

Traditional servers are always running, while these run your "function" or controller method through another stateless service that is also running many other functions, which is a more efficient allocation of resources.

2

u/emergent_properties Aug 09 '16

This is moving goal posts of what constitutes the definition of 'server'.

This is a server architecture.

No, paying Amazon to host (regardless of endpoint designation) is not serverless.

1

u/salgat Aug 09 '16

Once again, you're completely missing the point of why it's called that. Obviously a server is involved at some point, otherwise you couldn't even make an external connection. In the traditional sense, you are not running a server, but a stateless function hosted by someone else. No server on your part as far as you are concerned, just that function.

5

u/emergent_properties Aug 09 '16

Call it what you want, but don't call it 'truth in advertising'.

"Once again". Heh. No, clearly call a spade a spade. This is a server you buy on demand.

If you're advertising it as serverless, then it better frickin' be by ANY standard, common definition.

I thought this was getting into Bittorrent, DHS, or something like that... anything closer to peer-2-peer is considered closer to serverless.

Similarly, "unlimited".

4

u/awj Aug 09 '16

This is a server you buy on demand.

No, it isn't. I'm not administering, I'm not provisioning it, I'm not dealing with the potential for outages due to $hardware_failure. I don't worry about throughput or load balancing.

The developer/operations experience of using something like Lambda is wildly different from a normal server. You argue that "serverless" connotes something that this is not, I would say that "a server you rent on demand" does the same.

1

u/emergent_properties Aug 09 '16

Sorry, *rent or *lease.

I guess I was being pedantic. Sorry, I will be more carefully.

3

u/awj Aug 09 '16

Yeah, "buy vs rent vs lease" terminology changes basically nothing about what I said. What you get from Lambda is fundamentally different from any kind of server operations experience I have ever seen. Maybe "serverless" is a bad name, but "servers on rent" is at least equally misrepresentative.

3

u/emergent_properties Aug 09 '16

Wait, are you the author of the post?

→ More replies (0)

2

u/[deleted] Aug 09 '16

[removed] — view removed comment

2

u/awj Aug 09 '16

Ok, fine, I'm barely putting effort into provisioning it. Good job cherry picking a point to refute, care to address any of the others I made?

I like how the assertion has moved from "lambda is just somebody else's servers" to "lambda is just somebody else's servers, with automatic scaling" as though that maintains the original criticism.

1

u/[deleted] Aug 09 '16

[removed] — view removed comment

5

u/awj Aug 09 '16

Cool, so why do I have to install, configure, and administer IIS if it's basically equivalent to AWS Lambda?

3

u/[deleted] Aug 09 '16

[removed] — view removed comment

4

u/awj Aug 09 '16

The billing model is hardly the only unique thing about it. Sure, it's possible to replicate all or most of what you get out of the box from Lambda on third party hosting ... but that you don't have to is part of the point.

3

u/[deleted] Aug 09 '16

[removed] — view removed comment

3

u/awj Aug 09 '16

I'm talking about it in the context of what I've used. Sorry if it comes off as an advertisement. I'm assuming that similar service offerings have roughly similar features, or at least core concept. Maybe that means you view "Lambda" as interchangeable with any other offering, but I don't know enough to make that assertion.

3

u/resident_ninja Aug 09 '16

Azure has at least one offering that is structured and behaves comparably to Lambda: Azure Functions.

simplifying what these pipeline services do as a glorified "auto-configured/auto-scaled IIS" is doing modern cloud services a significant disservice. not to mention the fact that structurally and operationally they are significantly different than things like EBS and Azure's webapp offerings, which ARE much closer to "auto-configured, auto-scaled IIS".

3

u/[deleted] Aug 09 '16

[removed] — view removed comment

1

u/awj Aug 09 '16

Yes, I have, as I said I've used it. I suppose I overstated "I'm not configuring it", hopefully the author of "serverless architectures actually use servers, nyah nyah nyah" can forgive me for a bit of ignoring actual details in my quest to emphasize a distinction.

3

u/salgat Aug 09 '16

Fundamentally FaaS is about running back end code without managing your own server systems or your own server applications.

IIS both has dependencies that must be added to your service, coupling it to IIS, and requires administration. FaaS is about eliminating this, removing the idea that you are managing a server, but just your function.

1

u/[deleted] Aug 09 '16

[removed] — view removed comment

3

u/salgat Aug 09 '16

I'm referring to ASP.NET applications. And if you do use self-hosting (such as OWIN), then you have to install your own self-hosting dependency (including the HttpListener) and configure it in your application.

1

u/[deleted] Aug 09 '16

[removed] — view removed comment

1

u/salgat Aug 09 '16

It does as a dependency that you explicitly add to your project and runs as a part of your project (assuming you are using OWIN).

If I cared to, I could easily create a generic container that watches a folder and automatically hosts whatever it finds there.

That also defeats the point of only caring about your function. Look, you can keep trying to be as pedantic as you want, but it's obvious you are completely missing the point of what a FaaS is for.