261 points · by mooreds · 3y ago · 152 comments
It's easy to set Aurora up as "slave" for accepting replication data from an external MariaDB/MySQL server in order to make a smooth low-downtime migration into AWS, but there are... oddly peculiar kludges... when wanting to set Aurora up as "master" and have it feed its binlog outside in order to migrate away in the same smooth fashion.
For their managed Redis ("Elasticache") they have intentionally disabled a few functions that relate to exporting/migrating live data from one Redis instance to another. In particular the "MIGRATE" function, which is used specifically to make a fast and accurate dump of all data when you want to supplant (read: migrate) a Redis instance. Instead you have to hack manual outbound migration together yourself, key by key, database by database.
They are difficult to use because using them means loss of money.
Combined with other entrapping features means the all features that help escaping the ecosystem are seldomly used. So any individual products off boarding features are even less used.
These are also features that don't use more than once.
So of course when a product manager looks at usage metrics they see this feature is seldomly used and continue to deprioritize improving it.
Self-fulfilling prophecy.
Huh. I tried setting up AWS RDS MySQL to replicate from an external MySQL awhile ago, and the experience was almost comically poor. Is Aurora better?
If you generate a mysqldump and have the command line options set to correctly store the binlog or the GTID data to allow replication to start in the right place, RDS chokes.
This was back on Aurora 1 (based on MySQL 5.6), and setting it up as "slave" was identical to how one would go about it for regular MariaDB/MySQL.
Let's call AWS's "Free ingress, expensive/hard egress" business model as the AWS roach trap pattern.
At least RDS for SQL Server lets you do native backup/restore, so while it's slow there's still a good way to get your data out. Azure SQL, you're stuck with something like the Elasticache solution. (Or theoretically BACPACs, but they aren't transactionally consistent and don't work for large databases.)
1. Depreciation of NAT instance ami in favor of managed NAT
2. No EKS free tier
I have long thought it would be interesting to build a highly economical workload that is cross-region, but which only uses a single AZ in each. Inter-region bandwidth costs a little more, but if all your heavy traffic (monitoring etc.) is local you will save a ton. And since your only failover is cross-region, it should be easier to maintain the ability to do so as an organization. Also no extra exposure to whole-region failures :)
Quick back of the envelope [1] shows that the EC2 pricing is still only about 60% of the Aurora price, and something less than half of the RDS/PostgreSQL price, even counting the intra-region transfer.
There may be some transfer patterns and database sizes that cause the Aurora implementation to end up less expensive, but I think under most use cases Aurora is _more_ expensive, and RDS _much more_ expensive.
Just because the intra-region transfer isn't itemized doesn't mean that you aren't paying for it. Heck, the fact that the mark-up is so _low_ is pretty impressive, to be honest.
[1] Assumptions: [db.]r6g.large, x3 for ec2 instances, 1 year reserved capacity with monthly payments, 100GB storage, 1TB of intra-region transfer/month.
That's why a lot of services don't call it out.
[0] https://aws.amazon.com/ec2/pricing/on-demand/#Data_Transfer_...
I am not sure what Corey has done to get to these numbers, but inter-AZ traffic within the same VPC is free.
Perhaps the problem is that the pricing page is very confusing [1].
Probably the confusing part is that VPC peering between one VPC and another that crosses an AZ is not free, but you do not need to do that to compete with RDS availability.
> The problem that I want to highlight today is that if I spin up MySQL myself on EC2 instances, I’ll have to pay 2¢ per GB that I replicate between AZs, whereas I will pay nothing if I use RDS.
This sentence specifically, is not true. If your EC2 instances are in the same VPC but different AZs the data transfer is still free.
There's a better blog post which explains what is and isn't free here [2].
[1] https://aws.amazon.com/ec2/pricing/on-demand/
[2] https://aws.amazon.com/blogs/architecture/overview-of-data-t...
From the link you provided:
> Data transferred between a Local Zone and an Availability Zone within the same AWS Region, “in” to and “out” from Amazon EC2 in the Local Zone Pricing Data transfer in $0.01 Data transfer out $0.01
Your assertion is not true. We run intra-VPC services across AZs and they are billed for network traffic. It's also shown as incurring cost in your second source.
I had made this same comment then deleted it in order to check for sure. You are right that the Amazon docs are horribly confusing. The pricing page is up there with the descriptions of security on S3.
https://www.cloudbolt.io/guide-to-aws-cost-optimization/aws-...
Granted it is a third party website.
I wonder if something has changed with their pricing.
Corey likes to bash AWS for sport. Sometimes he has a point and other times he’s off the mark. Here he’s missed IMHO. He’s swatting in the air trying to find a controversy where there isn’t one.
Heck, you can look at other cloud providers, and in some cases they are very open about stuff "being build atop public compute". One example that comes to mind is the VPC interconnect of GCP to get reachability between serverless and the rest of the VPC: it uses plain old compute to route the traffic; you can even pick which type and how many to provision.
There are very few services on AWS that started based on what Amazon Retail used. Even today, much of Amazon’s infrastructure is not on AWS.
Lambda is also not built on top of Kubernetes.
The one service that I can think of that came from Amazon Retail is Amazon Connect. It was originally used as Amazon’s own call center. You can tell it wasn’t built specifically for AWS because there was no public API for automated provisioning and no IAC support for years.
Google’s infrastructure is also not built on top of GCP. Very little of Google uses GCP and it’s mostly unimportant things.
https://news.ycombinator.com/item?id=34964197 (Firecracker internals: Inside the technology powering AWS Lambda (2021)) may interest you, but the short version is no, not on top of kubernetes
Cloud Functions from GCP run on top of knative, one can see it in the metadata: keys, but unknown if it's "vanilla" knative or they have their own knative provider that does further trickery under the hood
It’s changing though, slowly
The author acknowledges they know they are already paying a premium for the managed service. With that premium you are also paying for the traffic between instances. If the price was the same I'd see how this is anti-competitive but like this I don't understand the argument.
No, you aren't. You're paying for the service following an arbitrary pricing model that bears no relationship with their business costs.
Most paid software has no relationship between its price and business costs. That's what makes software special from the business perspective.
Offering the same cost for customer managed tech would mean they take on risk where they have fewer controls and less visibility to manage and mitigate it.
I blame this lazy attitude of not knowing how to use your tools and instead asking cloud providers to know how to do things for you. Every single time I see an engineering team fail to understand how to use their tools and do their homework, they take the easy and long-term expensive way out. Oh and by the way, those solutions engineers you talk to barely know any better either. You will STILL eventually have to learn how to actually use the infrastructure you chose.
I write solutions for enterprises that are entirely independent of cloud specific offerings and then make sales engineers fight for volume business knowing they have no leverage.
Oh, you price hiked on us without notice? We already had deployment scripts to move providers and perform db redirections same-day and had already gone through procurement with other providers for insurance. Oh darn. Guess you shouldn't screw around with your customers.
As soon as you enter the pool, they WILL pull the ladder from you.
Of course it's because you agree on some level that DIY and "knowing how to use your tools and instead asking cloud providers to know how to do things for you" is simply not worth it. Companies who use these premium managed services are just setting the bar 1 level higher than you do.
Even if these premium services end up costing $200K/year more than doing it yourself on commodity VMs, that's not even the salary of 1 FTE engineer at many companies. It's simply not worth the time and opportunity cost to care about those things if it's distracting engineers from working on the core product.
If you want to have such a strong attitude towards people who use Aurora instead of running Postgres on an EC2 instance maybe you should be collecting some silica sand instead of worrying about cross-cloud compatibility.
This happens in basically every organization out there, even in the best ones. I've saved millions a month in AWS costs that came from decisions of people that are major tech leaders today. The original architect is now a CEO in a company you know, and I looked great for my efforts: Everyone won, other than the largest shareholders, who weren't looking into the decisions at all, as they had bigger fish to fry.
If incentives are such that the extra effort to be more cloud portable are useless to the person spending the effort, of course they are going to be "lazy". I've never worked at a place where I couldn't massively cut hardware or cloud costs by trying a little bit. It's just rarely been something that was anywhere near the top of the priority list.
The blog post is misleading or misinformed.
I’d really love to know what the marginal cost to AWS for this is though. I reckon there’s a very healthy margin in that 2c/GB.
I'd wager that AWS's marginal cost for intra-region traffic is zero. They own their infrastructure and other than maintenance and upgrades they have no cost linked with traffic volume.
Some cloud providers charge a round zero for intra-region traffic, and they don't have anything resembling AWS's scale. I doubt it's a loss leader.
That's likely a selling point to attract people to the competition. "Look, our bandwidth is free!"
Also there is quite a lot of cost for internal, inter-zone, traffic. You need all the routing equipment and the fiber links for that. And such traffic does not go through the same links as the public one, because you'd be paying the cost of public bandwidth trough transits or peerings. You want your own backbone, but this has a cost that needs to be amortized. Furthermore, properly designing such a network has a cost in engineers.
OCI also doesn't charge for NAT gateways, which makes sense because it's a configuration in a router that already exists and is already doing things. AWS, on the other hand, brings out the knives for you.
But bandwidth is free in intra-node traffic, isn't it? I mean, in some scenarios this traffic doesn't even leave the server. What does localhost traffic cost you?
Some of the traffic doesn't leave the server, let alone the server rack.
I'd wager these costs have zero to do with operational or infrastructure costs, and are just a way to price gouge customers.
(Also, whatever they pay, it is not charged in GB-increments.)
This is called a bundle
On the third-party side, we have: Compute + aws compute margin + network + aws network margin + storage + aws storage margin + software management + third-party margin
AWS is able to lower each margin parts, because they know you take a bundle
Why would you even think doing a cheaper but overall equivalent service in someone else's infrastructure .. THAT does not make any sense.
https://www.ftc.gov/advice-guidance/competition-guidance/gui...
There are 5 cloud providers in the US and according to Jassy (my skip * 7 manager) in public statements, less than 5% of all IT spin is on any cloud provider.
Did you even read your own citation?
-1, violates hn discussion guidelines.
I did. AWS is being anti-competitive, this isn't a board game with narrow definitions.
EU Monopolist or Chicago School Monopolist?
I won't respond.
TFA basically says it’s anticompetitive because if you don’t use managed services you pay fees for interzone network traffic. Yes, but if you don’t use managed services you don’t pay for them so you save on that cost. Which cost tradeoff is best for you is going to depend on a lot of factors (how much interzone traffic, your use case etc) and you’re going to need to make a sensible decision that works for you.
In general I’m not sympathetic with the ethos of complaining about cloud service providers. They are great for many things but not all things and there are many other hosting options you can explore that may be better depending on what you’re trying to do. In many case it’s a cost vs convenience or cost vs functionality type tradeoff.
Making it harder to switch is by definition anti-competitive
The whole point is that companies should not be trying to trick or stifle customers in any way from making a rational decision that is in their own best interest, including leaving their service.
The whole game here is "what can we get away with" and playing that game to start with is unethical.
It isn't. Anti-competitive would be using one's market power to drive out competition or keep competition from arising. There is no reasonable definition of "anti-competitive" for Amazon in this case, since Google and Microsoft are (arguably) even better positioned to compete (since they are tech companies, where Amazon is not). To avoid the lock-in, simply choose a different provider, or self-host. There is literally tons of competition in AWS' market.
Every provider out there optimizes the integration between its own services and makes sure the products in its ecosystem work nicely together. Meanwhile they cannot account for all other usages outside their systems. That's far from "making it harder to switch".
Yes I work for AWS Professional Services now. But I’ve seen the same with Azure and on prem in previous jobs. It hardly ever makes business sense not to go all in on whatever your infrastructure decisions are.
The article should cover this, so maybe the author just isn’t knowledgeable enough to realize.
It’s like complaining that a buffet doesn’t charge for dish washing fees.
It’s all designed to get you in and then herd you into lock in. Why would they build it differently?
I know what we pay for data center bandwidth. It’s priced by pipe size not transfer and works out to well under one cent per gigabyte, and that is with no scale compared to Amazon. Everything gets cheaper at scale unless it’s labor intensive.
Want to start a company called Snowflake, or Crunchy, or any of a number or similar providers? You’d better host in AWS (and Google Cloud, and Azure), because the respective cloud users wouldn’t want to pay for egress to use your service hosted elsewhere. Similarly, even Google can’t usefully undercut AWS’s pricing to get these providers to move out of AWS, because AWS would still charge the users.
What does the better version of this situation look like?
The better version that will never happen is that AWS makes their margin evenly on all purchases. But that wont happen since by pricing bandwidth so highly encourages people to do everything at AWS instead of sending data between providers.
Because I have a rough idea of what bandwidth costs me at a data center, I can make some conservative extrapolations for their economies of scale, and I can read the AWS price page.
(I have also negotiated discounted bandwidth fees for AWS, and while they can be substantial, AWS is not going hungry.)
Are you AWS sales? This seems unrelated to the discussion to me.
The discussion topic is about anticompetitive practices.
AWS charges a premium on intra-region traffic, when other cloud providers do not. The thesis is that these arbitrary charges are designed to force users to consume their managed services which further leads to vendor lock-in.
Can these arbitrary intra-region traffic charges be interpreted as anticompetitive practices? I believe there's a good case to be made. Don't you agree?
Is this documented anywhere? I would assume it's handled the same.
This is surprising as I remember that data transfer on EC2 within the same region was free. Maybe I always got it wrong.
I've been directly involved in multiple systems being deployed on AWS solely to avoid egress fees
and so what if it was? all of what's described in the article are services offered by a company. It's hard to call that anticompetitive when it's their network and their services. It's like you're saying Toyota's car building divisions are anticompetitive because they don't allow Honda to build their engines.
If you don't like how AWS's pricing works you HAVE to vote with your wallet and support another vendor in their efforts.
AWS had way more advantages and while this price is much higher than what the costs are, it’s sort of run of the mill business.
I dunno--AWS's could be better without spending effort on it? The same way every other cloud provider incentivizes using their managed services?
Don't get me wrong--a number of managed AWS services are very good. RDS is, even, for a lot of use cases. But AWS forces you to consider cost versus quality when you fall in the RDS gaps, and that's a shitty way to do business. AWS relies on being the only network transit provider in town to incentivize continued use of horizontally related offerings.
This is literal anti-competitive behavior, just as browser bundling was for Microsoft. Like that's the definition of it.
Like, the premise of these offerings has absolutely no need to try to compete with stuff running on AWS as they are clearly barely taking any excess margin over running it yourself. I would always have said the goal of these offerings was to make it easier to use AWS so you didn't have to build it yourself (and some of this stuff is complex to get right).
It matters when they see a profitable business opportunity in optimizing the bundled costs of the service offerings. And who can say "clearly" what the real margins are, especially at scale? All we know for sure is whatever those are, they are good enough for them to continue to offer these managed services.
Though Corey is talking about internal network use and I am talking about bandwidth to internet
For us, this is just part of the calculation; if we have special cases we run it ourselves, but the case also has to justify the inter-AZ replication and other side-effects.
The way we use AWS services also assumes migration paths outside of what you would normally do (binlog or CDC options) where we don't migrate 'the database' but 'the service' that relies on the persistence offering. This is of course much harder if some of your functionality relies on AWS-specific things, but for the average persistence system (ES, RDBMS, NoSQL, Redis, Memcache, object storage, Kafka, MQ) it really isn't all that exciting and the AZ cost is hardly a significant factor of the showstopper kind.
Perhaps this also is due to the way we designed our persistence systems; we only allow single-owner persistence, so no shared redises, databases or tables or schemas. We also don't do any binlog PITR, we use Kafka rewinds in between RDBMS snapshots since the database isn't the only factor in our consistency and partition tolerance conundrum. And Kafka itself is so 'thin' on the server side that binary exports/imports are only tied to the major version and highly dependant on what the client does (which is something AWS does not control - if they would their MSK offering would be useless).
Using AWS as a 'virtual datacenter' or 'managed version of the thing you already have' is bound to turn into a PITA. That applies to GCP as well, but almost 10x for Azure. Ironically, you're better off not using the big three if that is what you want, you don't get a lot of the features, but you also pay a fraction of the cost. And if you're not using the features anyway (or see them as a problem), Linode, Vultr, DO, even Scaleway are all a much better fit anyway.
In my cases where we use AWS, it's almost always for the same reasons:
- We use enough of it to get discounts
- We use enough of it to allow us to do 10x with the same people, it is a very significant force multiplier
- We require some of the cross-service facilities like IAM, KMS, ACM, Security Groups
In a small number of cases it's also for compliance reasons, but I try to stay away from that since that usually comes with a checkbox clipboard manager/auditor regime as well, and I don't enjoy managing or working for those.Doesn’t like, every company do this?
Oh well, haters guys hate, you defend Amzn and they cry.