RestateComponentsProperties
Properties for configuring Restate services.
Top-level fields (e.g. restate.inactivity-timeout) act as defaults applied to all services. Per-service configuration in getComponents takes precedence over these defaults.
Example configuration in application.properties:
# Default configuration applied to all services
restate.executor=myGlobalExecutor
restate.inactivity-timeout=10m
restate.retry-policy.max-attempts=5
# Per-service configuration (overrides defaults)
restate.components.MyService.executor=myServiceExecutor
restate.components.MyService.inactivity-timeout=5m
restate.components.MyService.abort-timeout=1m
restate.components.MyService.idempotency-retention=1d
restate.components.MyService.journal-retention=7d
restate.components.MyService.ingress-private=false
restate.components.MyService.enable-lazy-state=true
restate.components.MyService.documentation=My service description
restate.components.MyService.metadata.version=1.0
restate.components.MyService.metadata.team=platform
restate.components.MyService.retry-policy.initial-interval=100ms
restate.components.MyService.retry-policy.exponentiation-factor=2.0
restate.components.MyService.retry-policy.max-interval=10s
restate.components.MyService.retry-policy.max-attempts=10
restate.components.MyService.retry-policy.on-max-attempts=PAUSE
# Per-handler configuration
restate.components.MyService.handlers.myHandler.inactivity-timeout=5m
restate.components.MyService.handlers.myHandler.ingress-private=true
restate.components.MyService.handlers.myHandler.documentation=Handler description
restate.components.MyService.handlers.myWorkflowHandler.workflow-retention=30d
Content copied to clipboard