5 ms·
My current work project is trying to switch to a primary serverless architecture. I'm trying to fight it but know I'm going to lose. I don't have any problem w
by soulnothing 9y ago
My current work project is trying to switch to a primary serverless architecture. I'm trying to fight it but know I'm going to lose.
I don't have any problem with "serverless". Years ago I wrote a nginx handler that routed to .py files and ran them inside an lxc container, while at a hosting company. Fronted via haproxy, and documented with sphinx automatically.
My problem is the hidden costs. Sure lambda requests are low cost. But what about API gateway, dynamo/rds access. Then I'm writing a basic crud app. Low-performance low request rate, noncritical. There is this additional complexity, that just isn't necessary. Every day at my job I'm thinking to myself it doesn't need to be this difficult.
My usual route is django, django admin, and django rest. With an haproxy in front for load balancing. Dead simple and easy to work with. It's passe sure, but KISS. The alternative here is an api and a frontend. Several more projects to maintain. Tuning the projects to meet lambda size requirements/standards. The return on investment is minimal to me. If you can't automate managing a fleet of containers or vps instances then why're you here?
The vendor lock-in, is insane to me. You're pretty much at the beck and whim of the provider. They raise the prices, what're you going to do. You either go with the price increase or do a rewrite.
As I was sitting in these architecture meetings on moving too lambda. I was hearing several new packages/repos. New CI/CD, and configuration to maintain. During the meeting I scratched out a POC using EC2, Load Balancer, RDS and django to do what they were saying with half the code. But nope gotta be lambda.
- ceejayoz 9y ago> They raise the prices, what're you going to do. In the 11 year history of AWS, I don't think they've ever increased prices for anything. I'm pretty comfortable with their ability to avoid it in the future.
- deleted 9y ago[deleted]
- hueving 9y agoAn 11 year history is hardly worth betting what could be the future of your company on. Especially for something just slightly more convenient than what can be built in-house.
- vageli 9y ago> An 11 year history is hardly worth betting what could be the future of your company on. Especially for something just slightly more convenient than what can be built in-house. So you can build a globally distributed, redundant, eventually consistent object store with high availability easily and conveniently and without allocating developer time that could be better used building..oh I don't know, the actual business logic? Not to mention ongoing maintenance and its expense. It's ridiculous to suggest that the entirety of the AWS offering is something that is just slightly more convenient than what could be built in house.
- toomuchtodo 9y agoS3 is not globally distributed. Each region is fully independent of each other. If Virgina is nuked, you lose anything in us-east-1. I’ve confirmed this with AWS staff because of a prior HN discussion :) The ease through which Amazon provides the ability to architect incredibly globally redundant applications is unmatched. But your business probably can’t afford to implement at that scale, Amazon or otherwise (geographically load balanced DNS, multiple primary databases across regions and their associated followers, replicating S3 objects from all primary region buckets to secondary regions, instances for each application running multi-AZ in multiple regions, etc).
- DarronWyke 9y agoOf course, if a S3 region gets nuked, it can have repercussions in other zones too. Remember the S3 outage?
- toomuchtodo 9y agoComing from an tech|infra|dev/ops background, I remember all AWS outages painfully ;)
- mrobins 9y agoNot speaking about S3 specifically but overall I disagree. Assuming there’s a business case that requires multi-AZ or multi-region redundancy of multiple services it’s hard to match AWS in terms of price and simplicity.
- DrScump 9y agoI wouldn't expect meaningful price increases (in real dollar terms) as long as competition survives.
- tanilama 9y agoFully serverless? Not trying to offend, but sounds like a really immature decision and company overall
- soulnothing 9y agoJust for our component edited parent component properly.