Creating Fault Tolerant Services on Mesos
Channel: The Linux Foundation
Date: 04/04/2017

Fault-tolerant and thus distributed applications are hard, but Mesos is the ultimate breeding ground for them. Rule number one for designing such beasts is to use well-known, tried and tested, and in particular proven methods and tools as building blocks.

In this talk I will show how features like automatic failover, component discovery, one-time initialization, leader election and continuous supervision can be built relatively easily using ArangoDB's new Raft-based Agency.

The trick with "relatively easily" contradicting the above "hard" is that a central Raft-based key/value store with

(1) strong transactional semantics,
(2) powerful preconditions,
(3) scriptable supervision code in the leader,
(4) JSON-based HTTP/REST API, and
(5) subscriptions to HTTP callbacks on changes

already solves a lot of your problems.