I have multiple services which need Memcached (e.g. "book service", "customer service"). I have two options:
- Set up one AWS Elasticache cluster and share it, using a prefix scheme for the keys "book-service-key1", "customer-service-key1" etc.
- Set up one cluster per service.
If all services use the same cluster (option 1), will "book service" hold all the Memcached data used by "customer service" in memory, even if it has never used any of these keys?
My question stated in other words: If I start a memcached client and join it to a cluster, will it replicate and hold all the data, or only data which it accesses?