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.
-
Custom Expiry Policy
Business-calendar TTL, payload-driven expiry, or per-service SLA.
-
Exception Policy
Control whether exceptions are rethrown or swallowed when recovery finds nothing.
-
Recovered Payload Handler
Return an empty list or default value instead of
nullwhen recovery finds nothing. -
Custom Payload Enricher
Inject custom metadata into stored or recovered payloads at interception time.
-
Payload Splitter
Scatter/gather — split collection entries into individual store entries for partial recovery.
-
Context Propagation
Propagate MDC, tenant, or security context across parallel scatter slices.
-
Payload Column Resolver
Control how the JDBC store serialises and deserialises the
PAYLOADcolumn. -
Database Resolver
Route JDBC operations to different
DataSourceinstances per tenant. -
Store Query Resolver
Override the SQL queries used by the JDBC store for custom schemas or dialects.
-
Observability
Wire Micrometer metrics, health indicators, and custom log levels for your setup.
Next Steps¶
- Concepts — understand the core model before extending it
- Properties Reference — all configuration options