4 ms·
How often do identities or access settings change? Not often, I guess. So it seems (to me) that they are accessing almost static data at a very high speed, whic
by amelius 5y ago
How often do identities or access settings change? Not often, I guess. So it seems (to me) that they are accessing almost static data at a very high speed, which is not really a surprise. Am I missing something?
- artwr 5y agoA lot of the calls in the organizations I have worked for use assume role and are usually associated with temporary credentials. Those are often shortish lived and not static
- orf 5y agoThe policy documents don't change that much I think, but there is more than that that goes into evaluating a policy. You've got resource + org policies, all kinds of tags, complex conditionals, per-assumption stuff etc etc. Fascinating problem space.
- refulgentis 5y agoYes - their claim has no relation to time-to-response, so static data, etc. is irrelevant. Thought experiment: if it suddenly took 10 seconds to respond to the calls, the number of responses still equals the number of requests, so the request velocity mentioned in the headline remains the same.
- Spooky23 5y agoPeople and things need access tokens all of the time. Off the shelf services can handle most loads - Even things like AD can scale out to millions of users. Used to work on 20M+ user identity service that didn’t see volume anything like this, but when utilization went up usually it was just a matter of adding more replica databases and auth servers.
- faizshah 5y agoThe scale is the problem, the assumptions you make for a 100k rps system break for a 1m rps system. For example, in a 10k rps system “just shard it and add another replica” might work but at 100x the throughput your replication strategy itself can break. The load isn't the only issue either you also have availability SLAs you need to meet that force you to design the system to tolerate faults at that scale or else half the internet gets taken down. Your system has to be broken up at a granularity where many engineers can work in parallel to diagnose and mitigate an issue when your service does get taken down to minimize downtime. “Scale breaks everything” as they say.
- bastawhiz 5y agoEven if the response changes only very infrequently, permissions are not what you want to be serving stale responses for. Can you confidently invalidate the right caches in a system serving 400M QPS? I would bet that relatively little is cached in IAM today.
- idunno246 5y agoiam is eventually consistent...because its caching so much. we can see changes easily take a minute to propagate
- bastawhiz 5y agoReplication delay and stale caches are two different problems with vastly different causes
- josephh 5y agoCan you elaborate more? Is it not possible to have replication delay due to stale caches?
- bastawhiz 5y agoI'm not aware of a data store which populates its replicas with data from a cache. Surely there are caches within any given data store, but the whole point of a replica is to have the data replicated (for scaling reads, redundancy in case your leader fails). If you're using caches, you're deliberately sending old data to the replicas. I can't think of why you'd do that. I guess you could have replicas of your caches, but I'm referring specifically to data store replicas.
- nicoburns 5y agoIs a replica not a cache of sorts?
- bastawhiz 5y ago
- foolfoolz 5y agoclassic hacker news comment. 400M RPS belittled to commonplace service development. you truly underestimate how high of throughput this is
- brink 5y agoSure, from a numbers standpoint it's a lot. But from a technical perspective, serving mostly static data is not that interesting.
- asdfasgasdgasdg 5y ago> But from a technical perspective, serving mostly static data is not that interesting. The difference between mostly static and completely static is where the interesting bit is. The two categories beget completely different solutions, especially when serving stale data is not acceptable, as in the case we're looking at.
- deleted 5y ago[deleted]
- brink 5y agoWell I guess it is to some people..
- asdfasgasdgasdg 5y agoYou aren't aware of what is involved in a system like this. You believe it's simple, and so you believe it would be technically uninteresting. But you are mistaken in that belief. Go read the Zanzibar paper[1] -- Google's analogue to the AWS system we're discussing -- then come back and tell me with a straight face that that is technically uninteresting. If so, I'll at least learn that we have different views on what technical interesting-ness is. [1]: https://research.google/pubs/pub48190/ https://research.google/pubs/pub48190/
- 5y ago
- faizshah 5y ago“Accessing almost static data at a very high speed” This is a globally distributed service operating at massive throughput and ultra low latency scaling requirements where if it fails millions of customers and a majority of online commerce as a whole comes to a halt. What you’re referring to is just the very tip of the iceberg.
- amelius 5y agoIdentities can be sharded very easily.
- faizshah 5y agoYou seem to think that this is just a service that reads and writes data like any CRUD app. The hard problems stem from how the system deals with failures and how the system propagates writes across the replicas while meeting latency and consistency SLAs. On top of that the system needs to be built in a way that it can be maintained by many developers each working on a small piece of the system without knowing the ins and outs of the system as a whole. In addition, when the system fails debugging and mitigation needs to be able to be parallelized across many developers so that availability SLAs can be maintained. You can read about this in “Designing Data-Intensive Applications” by Martin Kleppman where he discusses the complexity involved in building distributed systems.
- ctvo 5y agoHere's an idea: implement a static HTML page with a counter. The counter is updated every 15 minutes. You serves this HTML page 400 million times per second. It needs at least 99.99 uptime. When the counter is updated, ensure new requests have the latest value within a second.
- amelius 5y ago> ensure new requests have the latest value within a second. That's the point: nobody said permission updates have to happen within a second. They are performed infrequently, so the system can afford to make them slow.
- ctvo 5y ago> Q: What happens if I delete an IAM role that is associated with a running EC2 instance? Any application running on the instance that is using the role will be denied access immediately. https://aws.amazon.com/iam/faqs/ https://aws.amazon.com/iam/faqs/ P90 values provided to us in 2017 (large enterprise considering AWS) was under 1 second.