Lattice
Lattice · distributed cache
Keys Group platform
EU region · 4 nodes

Keyspaces

A keyspace is a namespace with its own memory budget, TTL default and eviction policy. Services never share a keyspace.

Configured

KeyspaceOwnerBudgetUsedTTL defaultEviction
session:*auth180 GB174 GB12 hlru, warm
rate:*edge24 GB9 GB60 sttl only
frag:*web220 GB186 GB30 mlru
geo:*dispatch48 GB31 GB24 hlru
tmp:*shared16 GB4 GB5 mttl only

Budgets

  • A keyspace over budget evicts inside itself only — it cannot push another service out.
  • ttl only means nothing is evicted early; writes fail once the budget is reached. Use it where a stale answer is worse than no answer.
  • Raising a budget takes effect on the next gossip round, no restart.
session:* has been within 4% of its budget for a week. Either raise the budget or shorten the default TTL — eviction at this rate costs more in re-auth than the memory is worth.