Quick question: in a production setting, we are pl...
# help
a
Quick question: in a production setting, we are planning to use PostgreSQL for policy storage. From what I understand, Cerbos reads from the DB, loads the policies into memory, and then after - is the connection to the data store kept alive?
c
Hi. Cerbos doesn't load all policies into memory. They are loaded from the database lazily when accessed and then cached. You can configure the database connection pool settings to define how long idle connections are kept open and so on. https://docs.cerbos.dev/cerbos/latest/configuration/storage.html#_connection_pool
a
Oh, okay perfect, thank you for clarifying!