Reliable computer systems must handle malfunctioning components that give confilicting information to different parts of the system. This situation can be expressed abstractly in terms of a group of generals of the Byzantine army camped with their troops around an enmemy city. Communicating only by messenger, the generals must agree upon a common battle plan. However, one or more of them may be traitors who will try to confuse the others. The problem is to find an algorithm to ensure that the loyal generals will reach agreement.

$docker run -d -p 5432:5432 postgres$ docker run -d -p 27017:27017 mongo


# 导言

• consignments (货运)
• inventory (仓库)
• users (用户)
• authentication (认证)
• roles (角色)
• vessels (货船)