Fairness in multi-tenant systems
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
âŚand yesterdayâs thread on âMaking retries safe with idempotent APIsâ at https://markn.ca/2021/making-retries-safe-with-idempotent-apis/
âď¸ cloud devops
itâs not easy
âď¸ cloud devops
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
what does that have to do with multi-tenancy? you ask (you did ask, right?)
wellâŚ
âď¸ cloud devops
@dyanacek takes it a step further in this & shows how you can use this to reduce pressures on your systems as well
âď¸ cloud devops
idle = bad (generally)
âď¸ cloud devops
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
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
the author introduces the concept of âload sheddingâ
âď¸ cloud devops
âď¸ cloud devops
the paper details how & what to look out for when adding this pattern to your design
âď¸ cloud devops
thereâs a fine art to implementing a quota system & the does a good job of providing a sold overview
âď¸ cloud devops
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
nothing is every perfect, so knowing all of the tools âď¸ at your disposal is critical
âď¸ cloud devops
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