Skip to content
How-to Guides

How-to Guides

How-to Guides

Step-by-step guides for extending Failover with custom behaviour. Every extension point is a Spring @Bean — declare your bean and auto-configuration detects it via @ConditionalOnMissingBean.

  • Custom Key Generator


    Method args are complex objects, need normalisation, or you want composite keys.

    Customise keys

  • Custom Expiry Policy


    Business-calendar TTL, payload-driven expiry, or per-service SLA.

    Customise expiry

  • Exception Policy


    Control whether exceptions are rethrown or swallowed when recovery finds nothing.

    Configure exceptions

  • Recovered Payload Handler


    Return an empty list or default value instead of null when recovery finds nothing.

    Handle null recovery

  • Custom Payload Enricher


    Inject custom metadata into stored or recovered payloads at interception time.

    Enrich payloads

  • Payload Splitter


    Scatter/gather — split collection entries into individual store entries for partial recovery.

    Configure scatter/gather

  • Context Propagation


    Propagate MDC, tenant, or security context across parallel scatter slices.

    Propagate context

  • Payload Column Resolver


    Control how the JDBC store serialises and deserialises the PAYLOAD column.

    Customise serialisation

  • Database Resolver


    Route JDBC operations to different DataSource instances per tenant.

    Configure routing

  • Store Query Resolver


    Override the SQL queries used by the JDBC store for custom schemas or dialects.

    Override queries

  • Observability


    Wire Micrometer metrics, health indicators, and custom log levels for your setup.

    Add observability


Next Steps