3 ms·
All that layer really needs to do is support caching objects. When response is returned, cache based on idempotent cache key, and on subsequent requests, lookup
by ec109685 5y ago
All that layer really needs to do is support caching objects. When response is returned, cache based on idempotent cache key, and on subsequent requests, lookup that value before making downstream requests.
Also, should extend the key’s value with an unguessable session id, so folks can’t can’t guess the key and read someone else’s data.
- quesera 5y agoYep, but that idempotency caching layer would need to share keys across all instances, possibly even geographically. This is a solved problem at the application layer of course, but adding complexity at the higher (LB or proxy) layer ... well, adds complexity there and the benefit is not clear to me.