Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们在软件中大量使用缓存。“put/get”数据存储的概念对应于“共享状态并发模型”,与消息传递并发(例如Actor)相比,它存在许多缺点。
我们如何协调消息传递模型和缓存?还是我们都将永远被共享状态并发所困?
缓存可以实现为一个参与者,因此与它的交互(放置/获取操作)将通过消息传递发生。根据例如性能要求,此解决方案可能会演变为缓存,在具有某种范围的更多参与者或另一个充当路由器的参与者之间划分缓存。