https://cerbos.dev logo
#help
Title
# help
p

Petra Barus

09/08/2022, 11:07 PM
Hey team, I am evaluating Cerbos. For production environment, do you recommend using S3 or RDS Postgres?
e

Emre (Cerbos)

09/09/2022, 6:13 AM
Hi @Petra Barus, thanks for your consideration. If your application is going to make dynamic changes to the policies, we recommend a database back end. However, if you think the policies are doing to stay relatively static, then a disk or git based is recommended.
p

Petra Barus

09/09/2022, 6:27 AM
So I am building a digital content e-commerce. When a customer purchase a content, the system will publish the permission to that person. I think that’s considered pretty dynamic, right?
c

Charith (Cerbos)

09/09/2022, 6:46 AM
Yes. If you are constantly changing policies based on events like customer purchases, then using a database is probably easier than writing to S3.
With the database, the new policy will be available to Cerbos almost immediately. Whereas, with S3, it will only be picked up during the next polling round.
p

Petra Barus

09/16/2022, 9:21 AM
@Charith (Cerbos) thanks a lot for the answer. How often does the polling happens? Is it configurable? Can we trigger it?
c

Charith (Cerbos)

09/16/2022, 9:24 AM
You can configure the polling interval: https://docs.cerbos.dev/cerbos/latest/configuration/storage.html#blob-driver (
updatePollInterval
). You can also trigger a reload using the Admin API: https://docs.cerbos.dev/cerbos/latest/api/admin_api.html#_reload_store
6 Views