Skip to main content

High Availability

This document explains how to set up Ory Kratos in for High Availability.

Horizontal Scaling

Ory Kratos scales effortlessly to thousands of pods without any additional work!

Mail courier

Ory Kratos processes emails by storing them in an email queue on your database and running a mail courier worker to handle this queue. To avoid processing the same email multiple times, only one instance of this mail courier should be run at one time. For simple single-instance Kratos deployments, the courier can simply be run as a background worker, but for multi-instance Kratos deployments, it needs to be run a distinct singleton foreground worker. For setup details, visit to the Out of Band Communication guide.

Ory Kratos doesn't have any special requirements when it comes to High Availability as it doesn't manage state itself but instead relies on the SQL database for that.

It's therefore possible to use Ory Kratos with Auto-Scaling Groups for example in Kubernetes without any additional configuration.