> For the complete documentation index, see [llms.txt](https://docs.xplatform.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xplatform.com/talon/developing-applications/authoring-user-code/consensus-model.md).

# Consensus Model

This section covers how to configure your microservice's consensus model and high availability policy.

## Overview

Talon supports two consensus models for maintaining consistency across replicated microservices:

* **Event Sourcing** - POJO-based stores with event replay for consensus
* **State Replication** - ADM-generated state objects with automated replication

The HA policy determines how your microservice behaves in a cluster and which consensus model it uses.

## Topics

* [**Specifying The HA Policy**](/talon/developing-applications/authoring-user-code/consensus-model/specifying-the-ha-policy.md) - Configure your microservice's high availability and consensus behavior

## Related Topics

* [Consensus Models](/talon/concepts-and-architecture/consensus-models.md) - Conceptual overview of Event Sourcing vs State Replication
* [Cluster Consensus](/talon/concepts-and-architecture/microservice-operation/cluster-consensus.md) - How consensus works during message processing
* [Microservice Template](/talon/developing-applications/microservice-template.md) - Template-specific guidance for each consensus model
