examples/write-patterns/patterns/1-online-writes/README.md
This is an example of an application using:
It's the simplest of the write-patterns introduced in the Writes guide.
[!TIP] Other examples The Phoenix LiveView example also implements this pattern — using Electric to stream data into the LiveView client and normal Phoenix APIs to handle writes.
It's very simple to implement. It allows you use your existing API. It allows you to create apps that are fast and available offline for reading data.
Good use-cases include:
You have the network on the write path — slow, laggy, loading spinners.
Interactive applications won't work offline without implementing optimistic writes with local optimistic state.
See the How to run section in the example README.