so high level conceptual question:
How do distributed caches and global caches work?
From my understanding, requests go through a load balancer, to a web server, then to a cache. In the event of a miss, it looks in the db.
**Load Balancer > Web Server #xxxxx01 > Cache > Load Balancer > DB #xx02 **
Is this cache constant throughout all servers? For example, if I put something in my shopping cart on amazon on web server #322, is there a global cache which is replicated to cache all of the shopping carts for all of the users on all of the servers? So if I am ever routed to webserver #151, I can still get my cached shopping cart? Or does each web server have a dedicated cache and each time I log back into amazon, my request is routed to the cache where my shopping cart is?
Thanks for the clarification.