Thursday, November 24, 2005

OSCache อีกที

คราวก่อนพูดถึงเรื่อง การ implement cache บน Web Application
ที่ใช้ OSCache เข้ามาช่วย
วันนี้อ่านเจอใน Raible Design เรื่อง Clustering OSCache
เลยรู้ว่าตัวเองเข้าใจผิดในส่วน feature Cluster ไป

ลองอ่านนี่ดู
Caches across a cluster only broadcast messages when flush events
occur. This means that the content of the caches are built up
independently on each server, but whenever content becomes stale on
one server it is made stale on them all. This provides a very high
performing solution since we never have to pass cached objects around
the cluster. And since there is no central server that is in charge of
the cluster, the clustering is very robust


เดิมผมก็เข้าใจว่ามันทำ replicate cache
ระหว่าง node
แต่กลายเป็นว่า มันส่ง event broadcast
เฉพาะกรณีที่เราสั่ง flush (expire) content ใน cache

Related link from Roti

No comments: