Ecto / Phoenix strategies for dealing with read/write from replicas/primary DBs

I’m looking to use database read replicas (Postgres) with my app. Ecto’s official documentation is fairly good at explaining how to set things up, though doesn’t mention strategies for making read request from the primary database immediately after writes, since there’s a high chance replica’s won’t sync with the primary db so fast.

If anyone has battle-tested strategies in their Phoenix apps, would appreciate any code examples :blush: