0

I know replication in HBase is done via append only log files, to maintain the same order of entries as that in master to get replicated to slave's WALs I assume there must be some consensus protocol. How is it designed so that there isn't any consensus protocol ?

By ordering for example, update a boolean column to true & then false. If updates are written to replica's wal files in reverse the final state could be true instead of false.

1 Answers1

0

Hbase uses a primary/secondary architecture where only the primary receives requests and thus can achieve consistency without a consensus protocol since writes all go to a single place.

Your question is similar to asking why does postgres not use consensus protocol? Postgres also has a primary/secondary style replication mechanism

Asad Awadia
  • 1,417
  • 2
  • 9
  • 15