thePHP.cc Logo Deutsch Contact

Enforcing Uniqueness in Distributed Systems

Modern applications increasingly move towards distributed storage and "polyglot persistence". That brings new challenges. Some things that used to be rather trivial, namely enforcing uniqueness by just adding a unique index to a centralized database table, have suddenly become more challenging again.

So how do we enforce uniqueness in a distributed system, particularly when using event sourcing? This talk gives answers and shows an example of implementation.