Live data from Hacker News

Serverless and startups

aws.amazon.com

71–79 of 79 posts

Re: Serverless and startups

#71
post #36
post #24

I think I fail to understand how Lambda works better for startups. I see primarily 2 arguments. The first one is simplicity. You pack your Node.js application, upload to lambda and it works. But then in the article I see a chart with API Gateway, then Lambda, then SNS and then Lambda again. How is that simpler than deploying a single Node.js application on DigitalOcean? The 2nd argument is scalability. I see how this…

Have you done much with a framework like Serverless? The simplicity comes in because you can start writing business logic functions immediately. Plain Node typically uses a library like Express or Hapi. While not complicated, it is one more thing that is boiler plate and doesn't provide any business value. If the app needs a queue or messaging, sticking to plain node does not really change the need.

Express and Hapi seem simpler than the Serverless framework you're replacing it with. You have to specify that one more thing[0] anyway, don't you? I honestly don't see how this is simpler.

[0] https://github.com/pmuens/serverless-crud/blob/master/server...

Re: Serverless and startups

#72
post #64

Earlier quoted context omitted.

And too often, developers (smaller companies) and ops (larger companies) time is considered free because they are salaried and are expected to work more than 40-45 hours per week. Yes, earlier in my career I would have accepted that, but I’ve successfully pushed back a few times and said I won’t babysit a process/server etc but I will design a method where it is auto healing, autoscaling, etc.

As someone who has been both the server baby sitter and implementor of auto-healing/scaling, it still puts a smile on my face when a server fails a health check, AWS kills it, starts another one, and moves the work over. All with zero downtime. I just see the emails in the morning that it happened. The other huge benefit of building this process is we can use dirt cheap spot instances with near abandon. For me, any i…

When AWS is failing over RDS PG there is def nonetrivial downtime

Re: Serverless and startups

#73
post #72
post #64

Earlier quoted context omitted.

As someone who has been both the server baby sitter and implementor of auto-healing/scaling, it still puts a smile on my face when a server fails a health check, AWS kills it, starts another one, and moves the work over. All with zero downtime. I just see the emails in the morning that it happened. The other huge benefit of building this process is we can use dirt cheap spot instances with near abandon. For me, any i…

When AWS is failing over RDS PG there is def nonetrivial downtime

And? You think running your own database is going to have better uptime and scalability than something like Aurora?

If something like DB HA is important, I think it's much easier in AWS for a company with a smaller engineering department.

Re: Serverless and startups

#74

Which of the following is the more likely failure mode for a new product: A.) So many customers wanted it that we couldn't scale fast enough. B.) We ran out of time or money before we shipped. The author appears to be worried about A, but in my experience it's B that you need to think about when starting out. Imagine if, instead of building any of those crazy 30-node-diagrams of an architecture in the article, he'd h…

This a thousand times ^^ running on single box (or 2 + load balancing if you want HA) on something like DO would be a reasonable start for 99% of startups.

Re: Serverless and startups

#75
post #73
post #72

Earlier quoted context omitted.

When AWS is failing over RDS PG there is def nonetrivial downtime

And? You think running your own database is going to have better uptime and scalability than something like Aurora? If something like DB HA is important, I think it's much easier in AWS for a company with a smaller engineering department.

I am just pointing out that no downtime applies to failing over very specific services. In general AWS had pretty horrible track record on outages. A single top tier DC has way better uptime vs AWS Region.

Re: Serverless and startups

#76
post #75
post #73

Earlier quoted context omitted.

And? You think running your own database is going to have better uptime and scalability than something like Aurora? If something like DB HA is important, I think it's much easier in AWS for a company with a smaller engineering department.

I am just pointing out that no downtime applies to failing over very specific services. In general AWS had pretty horrible track record on outages. A single top tier DC has way better uptime vs AWS Region.

An AWS region or an AWS availability zone?

You should always make everything multi-AZ whenever feasible.

Re: Serverless and startups

#77

Earlier quoted context omitted.

It sounds like part of your decision was that Lambda comes out cheaper for hosting. That also doesn't pass the arithmetic I use to evaluate such things. A dev, fully loaded, will cost you $200/hour. A half cage at a colo with a really fast machine in it will cost $800/month. So if you choose a stack that adds 4 hours of work each month (or 80 extra hours upfront), you're behind. Given that (as I touched on above), yo…

Serverless is so much more than just Lambda functions.

I recently heard the following analogy:

IaaS => Owning a home

PaaS => Bed and breakfast

Serverless => Hotel room

Lambda I guess would be like using the coffee pot in a hotel room? Don't worry about power, don't worry about beans. Every time you come into your room it's ready to go, just press "on".

Re: Serverless and startups

#78
post #75

Earlier quoted context omitted.

I am just pointing out that no downtime applies to failing over very specific services. In general AWS had pretty horrible track record on outages. A single top tier DC has way better uptime vs AWS Region.

An AWS region or an AWS availability zone? You should always make everything multi-AZ whenever feasible.

Region. The multi Region thing is partial BS too if US East has a total failure there is not enough spare capacity to absorb all of US East compute in other Regions.

Re: Serverless and startups

#79

Earlier quoted context omitted.

Because you're immediately having to go to a MSA, which immediately adds a whole new layer of complexity, monitoring, network latency, API coordination, and configuration to otherwise simple webapps.

In the case of .Net at least, you write your API like you always do and the SDK provides a wrapper. You can have multiple actions/controllers just like you would with a traditional Web API project. https://aws.amazon.com/blogs/developer/serverless-asp-net-co... You test locally just like you would any other WebAPI project.

Yup. You can do the same in the other languages as well if you want.
Post reply on HN