|
|
|
|
|
by Traubenfuchs
348 days ago
|
|
I never understood this meme. We use caching a lot, anything that gets cached can only be written by one service each. The writing services emit cache invalidation messages via SNS that cache users must listen to via SQS, to clear/update their cache. Alternatively we cache stuff with just a TTL, when immediate cache invalidation is not important. Where‘s the struggle? |
|
If there are no real consequences for reading stale data, and your writes are infrequent enough, then indeed you're lucky and have a relatively simple problem.