Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: switch config examples to use direct writes mode. #1358

Merged
merged 2 commits into from
Jun 13, 2024

Conversation

thruflo
Copy link
Contributor

@thruflo thruflo commented Jun 13, 2024

Recommending setting a LOGICAL_PUBLISHER_HOST complicates the examples compared with just setting ELECTRIC_WRITE_TO_PG_MODE=direct_writes because this way you don't need to worry about having your docker electric addressable from Postgres.

@thruflo thruflo requested a review from msfstef June 13, 2024 11:28
Copy link
Contributor

@msfstef msfstef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! There's a few more mentions that might be worth changing:

  • In architecture.md under Streaming into Electric the logical replication is mentioned as the way this happens, we probably want to switch that or at least mention direct writes as the primary method
  • In running.md under docs/examples/notes we describe the logical publisher host as the method for connecting electric to postgres

@@ -14,12 +14,12 @@ You can run the [pre-packaged Docker images](#images) published on Docker Hub, o
The Electric sync service is configured using environment variables. The three required variables are:

- `DATABASE_URL` in the format of a Postgres [Connection URI](https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING-URIS)
- `LOGICAL_PUBLISHER_HOST` that the sync service is running on (must be accessible from the Postgres instance to establish an inbound replication subscription)
- either `LOGICAL_PUBLISHER_HOST` that the sync service is running on (must be accessible from the Postgres instance to establish an inbound replication subscription) or set `ELECTRIC_WRITE_TO_PG_MODE=direct_writes`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: maybe reverse order if we want to emphasize direct writes

@alco
Copy link
Member

alco commented Jun 13, 2024

FYI we're planning to remove the logical_replication mode but with no committed timeline yet - #1343.

@thruflo thruflo merged commit 31b8297 into main Jun 13, 2024
@thruflo thruflo deleted the thruflo/update-docker-examples branch June 13, 2024 13:04
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.

None yet

3 participants