News for hackers. Stuff that matters.
Re:AWS Service Operator for Kubernetes Now Available by stevehawk on Saturday October 06, 2018 @06:27PM (#18157648)
why the need to put lambdas in a VPC in order to hit a DB?
Re:AWS Service Operator for Kubernetes Now Available by merlincorey on Saturday October 06, 2018 @06:53PM (#18157775)
A VPC in AWS is essentially a virtual datacenter.

For many years now, essentially all AWS services are tied to a VPC.

Each account gets 5 VPCs per region, by default.

Whether you use RDS or EC2 to setup a database server, it will be tied to a VPC for networking isolation purposes.

As such you then would need the Lambda in the VPC, or to allow public internet access to the database.

The point is pretty moot though, because you can schedule Cloudwatch Events every 4 minutes to keep a lambda warm, if necessary.

Frameworks like Zappa even do this for you automatically.

Re:AWS Service Operator for Kubernetes Now Available by hn_throwaway_99 on Sunday October 07, 2018 @01:41AM (#18159010)
> The point is pretty moot though, because you can schedule Cloudwatch Events every 4 minutes to keep a lambda warm, if necessary.

I encourage you to read this article, https://theburningmonk.com/2018/01/im-afraid-youre-thinking-... , because if you're running a web API with Lambdas, keeping one instance warm with the "cloudwatch event every 4 minutes" trick will most definitely not solve your cold start issues.

Re:AWS Service Operator for Kubernetes Now Available by Rapzid on Sunday October 07, 2018 @03:03AM (#18159225)
> I think many still repeat the "conventional wisdom" about the cold start, and never get past that point.

First comment on your article nails it. At the end of the day lambdas scheduling is a black box. People have deduced certain behavior, but AWS is explicit about not relying on undocumented behavior.

I would be loath to recommend lambda for any application where business performance is sensitive to the services latencies.

Re:AWS Service Operator for Kubernetes Now Available by skluck on Saturday October 06, 2018 @07:29PM (#18157958)
It is somewhat arbitrary though, isn't it? If AWS adds the ability to use security groups without a VPC, a lot of these issues go away wrt vpc or siloed infrastructure limits (cold starts).

There are still reasons to be in a private network - Being "one typo away" from exposing your services/db to the world is scary. But that seems like a solveable problem as well...

Re:AWS Service Operator for Kubernetes Now Available by jflans on Saturday October 06, 2018 @06:37PM (#18157695)
I think to do otherwise you'd have to have the DB open to the public internet.
Re:AWS Service Operator for Kubernetes Now Available by buzzdenver on Saturday October 06, 2018 @06:40PM (#18157716)
Because the DB doesn't have a public IP, which is very good.