7 ms·
> Central session stores don't scale with distributed architectures. Sessions stores scale as much as anything else.
by spriggan3 10y ago
> Central session stores don't scale with distributed architectures.
Sessions stores scale as much as anything else.
- lobster_johnson 10y agoNot what I was referring to. They scale just fine on their own, but the surrounding architecture doesn't when it becomes involved for every single call. Simple scenario: Let's say user X wants to update document Y, which involves fetching a photo, processing it and storing it as Z. To read Y, we need to check the session. To update Y, we need to check the session. To store the photo, we need to check the session. We're already up to three roundtrips to the session store. Some interactions require a lot more participants, each of which need to check the store. Over and over again, even though _clearly_ the world hasn't changed the last 300ms. If one API requires 6 calls to its partners, that's 6 times more roundtrips than necessary.