News for hackers. Stuff that matters.
Re:Should you use a Lambda Monolith, a.k.a. Lambdalith, for ... by andrewstuart on Tuesday October 31, 2023 @08:41AM (#38083887)
It’s fiction that configuring the cloud is easier than configuring a computer.

I’ve worked at big companies with smart people who burn days and weeks trying to get IAM, gateways, vpcs, firewalls and lambda to play together. Let alone the ongoing nightmare of ops/dev interaction.

Complete cloud fiction.

The worst problem is the giant pile of cloud spaghetti you end up with and no one has any idea what connects to what and what depends on what. Easier to just accumulate more and more resources which cloud companies love.

Just run a computer, it’s easier.

Re:Should you use a Lambda Monolith, a.k.a. Lambdalith, for ... by jvanderbot on Tuesday October 31, 2023 @09:09AM (#38084269)
> It’s fiction that configuring the cloud is easier than configuring a computer.

We're arguing opinions and trying to apply logic.

Some people find lambda easier and it must be true that lambda fits certain workloads better. Some people prefer VMs or on-prem or other long-running services. I prefer both in different cases.

> The worst problem is the giant pile of cloud spaghetti you end up with and no one has any idea what connects to what and what depends on what.

Yes, it takes discipline to use the best tool for the job. "You should do X for everyting" is not the right approach, however. This argument is moot.

Right now I support:

* Lambdas for some very expensive infrequent number crunching

* Lambda-like on edge for fast response services that require low latency

* VMs for always-on services

* Computer in a closet for backups, logging, metrics, etc.

Re:Should you use a Lambda Monolith, a.k.a. Lambdalith, for ... by diesal11 on Tuesday October 31, 2023 @08:52AM (#38084039)
To be blunt that sounds like operator inexperience. Throw someone who's spent their life setting up Windows servers on a Linux box and you'd hear similar resentments.

At the end of the day you still need to configure the instances for things like auto scaling, security patches, logging and so on. IAM & VPC still come into the mix when running on EC2, so you've avoided nothing.

Re:Should you use a Lambda Monolith, a.k.a. Lambdalith, for ... by vidarh on Wednesday November 01, 2023 @11:44AM (#38099842)
Having made money supporting both on prem, managed servers and cloud instances, my billable hours for cloud setups always ended up far higher, because the setups were invariable more complex.

You haven't avoided much of you replace lambdas with ec2. You do if you replace it with a rented managed server or even a colo.

Re:Should you use a Lambda Monolith, a.k.a. Lambdalith, for ... by alex_lav on Tuesday October 31, 2023 @08:50AM (#38084015)
> It’s fiction that configuring the cloud is easier than configuring a computer.

> Just run a computer, it’s easier.

Statements made confidently while also being totally untrue.

> I’ve worked at big companies with smart people who burn days and weeks trying to get IAM, gateways, vpcs, firewalls and lambda to play together

Working with incompetent people is not an excuse.

Re:Should you use a Lambda Monolith, a.k.a. Lambdalith, for ... by scarface_74 on Tuesday October 31, 2023 @10:16AM (#38085199)
Your people may be “smart”. But they aren’t “experienced”.

Did they use the CDK or even SAM?

Re:Should you use a Lambda Monolith, a.k.a. Lambdalith, for ... by baq on Tuesday October 31, 2023 @02:23PM (#38089183)
I've experienced ansible for managing a fleet of multiple hundred on-prem servers and now I'm experiencing CDK for managing a large infrastructure.

Both suck real bad.

Infrastrucure is hard, thankless work. Complexity blows up whatever you do.

Re:Should you use a Lambda Monolith, a.k.a. Lambdalith, for ... by scarface_74 on Tuesday October 31, 2023 @02:32PM (#38089318)
You literally can tell ChatGPT to create a CDK typescript app that deploys a lambda + API Gateway where the lambda works with Get request and a dynamodb table. The lambda should have permission to read and write to the Table and it will get you 95% there.
Re:Should you use a Lambda Monolith, a.k.a. Lambdalith, for ... by icedchai on Tuesday October 31, 2023 @03:19PM (#38090031)
I've found that "permissions" are what bites most developers. It's always either IAM or security groups...
Re:Should you use a Lambda Monolith, a.k.a. Lambdalith, for ... by scarface_74 on Tuesday October 31, 2023 @03:39PM (#38090328)
Using the ChatGPT prompt I said above, it did the permissions correctly

    table.grantReadWrite(lambda function)
Just as an experiment, I’ve thrown Lambda code I’ve written from scratch into ChatGPT and asked it what permissions it needed. It got it right.

ChatGPT is well trained on everything AWS related. It can transform CloudFormation to idiomatically correct CDK or Terraform.

I hate to say this because it sounds like an appeal to authority. But I really want to set context. I used ChatGPT for projects while I was working at AWS ProServe and since I left. They were generic utility scripts with no proprietary business related code.

Re:Should you use a Lambda Monolith, a.k.a. Lambdalith, for ... by icedchai on Tuesday October 31, 2023 @06:59PM (#38092543)
Neat! I personally hate writing Terraform (Does anyone like it?)