Eli is a software developer working mainly on web applications (backend and frontend). She has been developing web applications since 1997 starting with PHP and going al the way through Perl, Tcl , Ruby and Elixir.
Currently Eli is working at eFaber, a company based in Bilbao, Spain. EFaber develops custom web applications for specific problems that require special solutions.
Multitenancy is a software architecture where one instance serves different clients (tenants). This definition is quite general and can be implemented in different ways.
This talk is about the specific case of web application where each client data is stored independently in the database and served by the same application.
Phoenix and Ecto already have all we need for the implementation. Ecto prefix option gives us access to PostgreSQL schemas for the data encapsulation and Plug provides a straithforward way to assign the current tenant.
In this talk we will see how all the pieces fit together in a step by step example.