The Amazon Builder’s Library is a great set of deep dive papers into the challenges with modern systems. This post highlights some of the challenges in dealing with mult-tenant systems.
“Fairness in multi-tenant systems, looks at the challenges of balancing loads within multi-tenant systesm. Specifically, issues around handling API requests to these systems.
I call out a few more details in the Twitter thread below…
it’s available at https://aws.amazon.com/builders-library/fairness-in-multi-tenant-systems/
🧵☁️ cloud devops @awscloud
@marknca tweeted at 10-Nov-2021, 14:00
Tweet 2/16 👇 Next tweet 👆 Start
…and yesterday’s thread on “Making retries safe with idempotent APIs” at https://markn.ca/2021/making-retries-safe-with-idempotent-apis/
🧵☁️ cloud devops
@marknca tweeted at 10-Nov-2021, 14:00
Tweet 3/16 👇 Next tweet 👆 Start
it’s not easy
🧵☁️ cloud devops
@marknca tweeted at 10-Nov-2021, 14:00
Tweet 4/16 👇 Next tweet 👆 Start
this Lens explains a few different multi-tenancy models
it’s at https://docs.aws.amazon.com/wellarchitected/latest/saas-lens/saas-lens.html
🧵☁️ cloud devops
@marknca tweeted at 10-Nov-2021, 14:00
Tweet 5/16 👇 Next tweet 👆 Start
what does that have to do with multi-tenancy? you ask (you did ask, right?)
well…
🧵☁️ cloud devops
@marknca tweeted at 10-Nov-2021, 14:00
Tweet 6/16 👇 Next tweet 👆 Start
@dyanacek takes it a step further in this 📑 & shows how you can use this to reduce pressures on your systems as well
🧵☁️ cloud devops
@marknca tweeted at 10-Nov-2021, 14:00
Tweet 7/16 👇 Next tweet 👆 Start
idle = bad (generally)
🧵☁️ cloud devops
@marknca tweeted at 10-Nov-2021, 14:00
Tweet 8/16 👇 Next tweet 👆 Start
if we’re each sharing a resource, what if I grab more than my fair share?
this is something we need to solve for…
🧵☁️ cloud devops
@marknca tweeted at 10-Nov-2021, 14:00
Tweet 9/16 👇 Next tweet 👆 Start
summed up as, “every client in a multi-tenant system is provided with a single-tenant experience” << or at least they SHOULD be
🧵☁️ cloud devops
@marknca tweeted at 10-Nov-2021, 14:00
Tweet 10/16 👇 Next tweet 👆 Start
the author introduces the concept of “load shedding”
🧵☁️ cloud devops
@marknca tweeted at 10-Nov-2021, 14:00
Tweet 11/16 👇 Next tweet 👆 Start
🧵☁️ cloud devops
@marknca tweeted at 10-Nov-2021, 14:00
Tweet 12/16 👇 Next tweet 👆 Start
the paper details how & what to look out for when adding this pattern to your design
🧵☁️ cloud devops
@marknca tweeted at 10-Nov-2021, 14:00
Tweet 13/16 👇 Next tweet 👆 Start
there’s a fine art to implementing a quota system & the 📑 does a good job of providing a sold overview
🧵☁️ cloud devops
@marknca tweeted at 10-Nov-2021, 14:00
Tweet 14/16 👇 Next tweet 👆 Start
the paper highlights how Amazon uses these (and why, and when), showing a few different models and patterns that could help you out
🧵☁️ cloud devops
@marknca tweeted at 10-Nov-2021, 14:00
Tweet 15/16 👇 Next tweet 👆 Start
nothing is every perfect, so knowing all of the tools ⚒️ at your disposal is critical
🧵☁️ cloud devops
@marknca tweeted at 10-Nov-2021, 14:00
Tweet 16/16 👇 Next tweet 👆 Start
it builds nicely on the other two papers I’ve mini-reviewed this week. I really think you should add this one to your reading list!
/🧵☁️ cloud devops
@marknca tweeted at 10-Nov-2021, 14:00