Cerbos Leverages CRDTs for Collaborative Playground

2024-12-17

Cerbos built a collaborative IDE and testing environment, the "Playground," to simplify complex authorization logic. To enable seamless collaboration, they utilize Conflict-Free Replicated Data Types (CRDTs), which automatically resolve conflicts in distributed systems. The article explores CRDTs, comparing popular libraries like Yjs and Automerge, and discusses the challenges and possibilities of building a custom CRDT. Cerbos integrates CRDTs with a backend-for-frontend (BFF) architecture, using WebSockets for data transfer and IndexedDB for local persistence, creating a robust collaborative platform. The challenges of global collaboration and data persistence are also addressed.

Read more