發⽣生了什麼事?! • Failover Strategy: MongoDB. • When Primary down, the secondary will become new Primary. When old Primary is back online, it will replay the op-log on old Primary.
Model class is Schema @Entity("employees") class Employee { // auto-generated, if not set (see ObjectId) @Id ObjectId id; // value types are automatically persisted String firstName, lastName; // only non-null values are stored Long salary = null; // by default fields are @Embedded Address address;