Data Retention Strategy for Production Formance Deployment #1962
-
|
Hi all, Key questions: I haven't found documentation or discussions on production data retention strategies. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Hello, Is there a specific reason for wanting to delete data from PostgreSQL after 6 months? |
Beta Was this translation helpful? Give feedback.
-
|
Hi @EyalAlphaEG , Here are few elements to help you in your data retention strategy:
Starting with version 2.3.0, Formance introduces streaming capabilities that allow exporting logs to third-party systems such as ClickHouse or Elasticsearch. This enables running cross-ledger analytics and heavy processing queries outside of the live PostgreSQL instance, reducing load on the operational database. We’ve also supported setups using Aurora DB replication to feed external tools in CDC mode, or continuous data exports to S3.
By default, all ledgers are created within the same bucket (
For horizontal scalability, segmentation is the recommended approach. One common pattern is to segment ledgers by time period (e.g., creating a separate ledger per year). |
Beta Was this translation helpful? Give feedback.
-
|
Hi, |
Beta Was this translation helpful? Give feedback.
Hi @EyalAlphaEG ,
Here are few elements to help you in your data retention strategy:
Starting with version 2.3.0, Formance introduces streaming capabilities that allow exporting logs to third-party systems such as ClickHouse or Elasticsearch. This enables running cross-ledger analytics and heavy processing queries outside of the live PostgreSQL instance, reducing load on the operational database.
We’ve also supported setups using Aurora DB replication to feed external tools in CDC mode, or continuous data exports to S3.
Notably, Amazon Aurora guarantees atomicity and consistency at the storage layer — meaning replicas always reflect fully committed tra…