Skip to content

Commit

Permalink
example: more README copy tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
thruflo committed Nov 22, 2024
1 parent e021081 commit 1a3f7d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/write-patterns/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Write patterns example

This example demonstrates the four different [write-patterns](https://electric-sql.com/docs/guides/writes#patterns) described in the[Writes](https://electric-sql.com/docs/guides/writes#patterns) guide.
This example demonstrates the four different [write-patterns](https://electric-sql.com/docs/guides/writes#patterns) described in the [Writes](https://electric-sql.com/docs/guides/writes#patterns) guide.

All running together, at the same time, within a single web application.

Expand All @@ -19,7 +19,7 @@ There's some shared boilerplate in [`./shared`](./shared). The code implementing

All of the patterns use [Electric](https://electric-sql.com/product/sync) for the read-path (i.e.: syncing data from Postgres into the local app) and implement a different approach to the write-path (i.e.: how they handle local writes and get data from the local app back into Postgres):

- [`1-online-writes`](./patterns/1-online-writes) uses online writes through the backend API
- [`1-online-writes`](./patterns/1-online-writes) works online, writing data through the backend API
- [`2-optimistic-state`](./patterns/2-optimistic-state) supports offline writes with simple optimistic state (component-scoped, no persistence)
- [`3-combine-on-read`](./patterns/3-combine-on-read) syncs into an immutable table, persists optimistic state in a shadow table and combines the two on read
- [`4-through-the-db`](./patterns/4-through-the-db) uses the local database as a unified mutable store, syncs changes to the server and keeps enough history and bookkeeping data around to be able to revert local changes when necessary
Expand Down

0 comments on commit 1a3f7d1

Please sign in to comment.