Specifying The HA Policy
The choice of a microservice's HA Policy, aka Consensus Model, is a design choice. Therefore, it is not a configurable option. Instead, the HA policy isspecified via the AppHAPolicy annotation on the microservice's main class.
The following illustrates how to set a microservice's HA policy
import com.neeve.server.app.annotations.*;
@AppHaPolicy(StateReplication)
public class MyApp {
...
}The AppHAPolicy supports the following values
StateReplication
EventSourcing
Default HA Policy
A microservice that is not annotated with the AppHAPolicy defaults to StateReplication.
Last updated

