Last summer I migrated 4 year old production app to a multi-tenant architecture. After I finished the project I wrote up my thoughts but sat on it forever (I struggle to proof-read). This is the post on how we used Ecto.Repo behaviours such as prepare_query/3 to provide customers subdomains and tenancy via Postgres schemas. I’d be interested in hearing your feedback:
https://travisfantina.com/blog/multi-tenancy-with-phoenix-and-elixir/
(website is an ongoing work in progress lol)


















