View on GitHub

# Quelea

## A Haskell library for declarative programming over eventually consistent store (Cassandra).

Since we want to keep track of the view count for videos, we might associate an integer count with every video_id:
Note that count should reflect the number of views the video has accumulated across the globe, not just at a single replica. Therefore, whenever a video is streamed from a replica, (a). its count has to be incremented up locally, and (b). this update needs to be propagated to every other replica globally. One way to achieve this is by bumping up the count synchronously across all replicas. But, synchronization (also called strong consistency (SC)) is very expensive as communication latency over internet is arbitrarily high, and can even be infinite in case of network partitions: