Skip to content

Feature: Configurable fsync for records and ledger writes#44

Open
evntd-jake wants to merge 2 commits intomainfrom
feat/non-durable
Open

Feature: Configurable fsync for records and ledger writes#44
evntd-jake wants to merge 2 commits intomainfrom
feat/non-durable

Conversation

@evntd-jake
Copy link
Contributor

While performance testing binary serialization, I hit an issue because I use an SSD that uses QLC for cheap high density storage. A smaller portion is used as an SLC write cache. See details on this LinkedIn post.

This change allows the consumer to trade durability for throughput.

The following will disable fsync on after event record and ledger writes.

mix fact.create --path tmp/nondurable \ 
  --record-file-writer-options sync=false \
  --ledger-file-writer-options sync=false

@evntd-jake
Copy link
Contributor Author

Not sure if I really want to be releasing this. I'm leaning towards not, and instead creating a WAL to ensure the system is durable and crash proof in v0.3.0

Base automatically changed from rel/v0.2.1 to main January 30, 2026 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant