So I was thinking about how insanely easy and convenient AWS’s managed solutions are, like lambda, RDS, api gateway etc.. and I thought it would be really cool and convenient to only use their managed solution and save a lot of DevOps headaches for myself, but it sounds too good to be true, so I’m wondering what’s the catch? And why shouldn’t I use only managed solution or more specifically lambda, RDS and api gateway…
Thanks in advance
EDIT- more details about my project/stack:
I’m developing an API with nodejs and express which I want to serve from lambda
Also I want the API to interact with the different DBs
Then I’ll have the front served from an S3 bucket
And the sockets (API gateway) as a feature for my front, it will have logic in a separate lambda
I think it’s a solid stack and very agile one since if tomorrow morning I decide I don’t want amazon no more I can just take my express API and use the exact same code anywhere, and since I use “regular” DBs (non-aws “branded” DB) in the form of mysql, mongoDB and redis, it means that my API doesn’t need to use AWS’s SDK to interact with the DBs which means that just changing the DBs logins will be enough to move to a different cloud provider.., the only real thing that would lock me to AWS is the sockets with API getaway which in case of me leaving AWS I’d have to rewrite but in today’s technology it’s far more difficult to build your own scalable sockets solution (with socket.io being terrible at scaling), and AWS’s socket soluton is really cheap compared to other managed solutions out there…
The question is the same.. why shouldn’t I use AWS managed solutions (serverless, RDS, etc..)
The main downside is vendor lockin. If you make everything Amazon specific, it’s hard to migrate to another cloud provider. (In reality no one ever migrates a specific application from one public cloud to another.)
Also, there’s the whole thing where Amazon take an open source product, stick an Amazon label on it, sell that, then never give back to the people who made the product. (E.g. dynamodb)
In terms of compute per dollar, managed services are quite a bit more expensive. RDS is double EC2. Lambda is about 50% premium per core. API gateway is harder to compare, but it’s very expensive—oftentimes can be a larger line item than the Lambda functions it’s invoking.
Of course, managed services save you time and let you execute faster, which most people consider well worth the premium. And with serverless products you don’t pay for what you don’t use, so can be cheaper depending on your use case.
I’ve updated my post with some more info about my stack, I don’t thing vendor binding will effect my stack or my program in a major way…
And yeah that sucks to hear them doing it (which every big company now-a-days does in a lot of different fields) but we don’t really have a choice we kinda have to use 1 of the 3-5 big companies that offer decent cloud solution and decent prices… (I’m not familiar with the dynamoDB case in specific but at least they help maintain the original open source project?)
As for the product itself you might be vendor free, but the CD is bound to AWS.
Actually what I wrote isn’t “why one shouldn’t use AWS specific products” it’s more of thongs to consider.
On the other hand ease of use of those products isn’t just about convenience of devops, it’s also cost savings due to less time needed, less complex system, more resilience with less admin skills etc all of these translates to cost saving. So when considering price it’s not that straightforward
I think you make a reasonably valid point about their open source product offerings, but DynamoDB is probably the wrong example here? They literally wrote the white paper on scaling nosql like DDB does and open source things like Cassandra are based on the Dynamo paper.
Things like Document DB are a much better example with its API parity with Mongo
Dynamo is a custom AWS thing. DDB is based on Dynamo, as are things like Cassandra - which is why I was saying above that DynamoDB a bad example of something to say that was open source and AWS popped their name on it and sold it
Correct. I didn’t suggest they did. But the person I’m replying to mentioned that Amazon seem to take open source tools, repackage them and sell them. Document DB with it’s API parity with Mongo isn’t far away from a Mongo as a Service. I was using it as an example to suggest it’s closer to what they were getting at than DynamoDB is
I tend to think of managed services as costing more, but saving you time. Is that an even tradeoff? It depends on what your time is worth and how much money you’ll spend on managed vs. unmanaged services.
For my company, we’ll almost always use managed services because we don’t want to spend time managing things…we’d rather spend most of our time developing our own software.
Managed services have less configuration options, though most people won’t notice it. For example, Fargate has more limitation on memory and CPU allocation than ECS on EC2.
I’ve been building systems for a very long time. Managed services is a complete game changer for me and I would need some incredible reason to not use it. Especially for enterprise, for me it’s a no-brainer. The amount of time/effort enterprises have to do keep their systems’ patched/updated, managed services are way cheaper.
For new project, I stick with serverless solutions like, lambda, dynamodb, api gateway, s3. You can build some really awesome things using these technologies for completely free. These are my goto services, if I can’t use them, then a Dockerfile + Fargate was my second choice. But now that lambda supports containers, there’s a lot less reasons for me to not use lambda.
In my opinion, worrying about vendor lock-in is overrated. Every system/platform has some type of vendor lock-in. You’re #1 focus should be building something awesome, not always thinking about the possibility of moving to another platform. Now, if you use good code encapsulation you can isolate your vendor specific code and if Google comes out with an S3 killer, it shouldn’t be a huge effort to add support.
You aren’t comparing TCO. The cost of running a database are a lot more than just compute. Each managed service basically comes with world class ops built in. IF you can find that talent, you like can’t afford it.
The point on serverless options is worth emphasising there. Something like API Gateway + Lambda can be cheaper than any provisioned option ever could be (e.g. EC2 or ECS as a point of comparison).
At higher request volumes that doesn’t hold up as much, of course, but it can be situationally extremely useful.