Skip to content

Add support for passing custom Finch client#124

Open
evanob wants to merge 3 commits intoelectric-sql:magnetised/1.2-compatibilityfrom
liveflow-io:custom-finch
Open

Add support for passing custom Finch client#124
evanob wants to merge 3 commits intoelectric-sql:magnetised/1.2-compatibilityfrom
liveflow-io:custom-finch

Conversation

@evanob
Copy link

@evanob evanob commented Feb 22, 2026

We want to be able to configure the Finch pool used by PhoeniX.Sync to communicate with Electric in :http mode. This changes allows us to do something like below.

application.ex

  children = [
    # ...
    {Finch,
     name: MyApp.Sync.Finch,
     pools: %{
       default: [protocols: [:http1], size: 300, count: 4]
     }},
    # ...
  ]

config/prod.exs

config :phoenix_sync,
  mode: :http,
  request_opts: [finch: MyApp.Sync.Finch],
  # ...

@evanob evanob force-pushed the custom-finch branch 2 times, most recently from a0d41f9 to c5e7e1f Compare February 22, 2026 18:43
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