zporter
ElixirConf US 2018 – Breaking Down the User Monolith – Zach Porter
Coming from Ruby on Rails, the convention is to have a
Usermodel handle multiple aspects of an account such as login, logout, password reset, and email confirmation. While there is a temptation to bring that convention with us when building an Elixir application, we can do better by leveraging bounded contexts, Ecto’s embedded schemas, andEcto.Multito break these separate pieces of functionality into isolated chunks that are easier to maintain and extend.
Audience: Beginner, Intermediate
All talks are available in the ElixirConf US 2018 Talks List or via the elixirconf2018 tag
Trending in Talks
Keynote: What Comes Next - Chris McCord | ElixirConf US 2026
https://www.youtube.com/watch?v=wR9O_MiwZ-8
Comments welcome! View the <s...
New
LT: Proof Driven Development - Gideon Keith-Stanley | ElixirConf US 2026
Comments welcome! View the <span class="hashtag-...
New
LT: Verified Pub/Sub - Brian Meeker | ElixirConf US 2026
Comments welcome! View the <span class="hashtag-icon-placeholder...
New
LT: Arbor: AI Agent Orchestration on the BEAM - Hysun Chung | ElixirConf US 2026
https://www.youtube.com/watch?v=WoBoBaUpGo4
Comments ...
New
LT: What You Can Do with MDEx and Lumis - Leandro Pereira | ElixirConf US 2026
Comments welcome! View the <span class="ha...
New
Update from the Nerves Core Team - Jon Carstens | ElixirConf US 2026
https://www.youtube.com/watch?v=7VbPvlKxF9k
Comments welcome! Vie...
New
Update from the Erlang Ecosystem Foundation - Dan Janowski | ElixirConf US 2026
Comments welcome! View the <span class="h...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Hi everyone :waving_hand:
I’ve been working on PhiaUI, an open-source UI component library for Phoenix LiveView, and I wanted to share i...
New
On November 23, 2026, an unauthorized third party exploited a vulnerability in hex.pm (CVE-2026-129514, CVSS 10.0) that let them run comm...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #code-sync
- #discussion
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #ai
- #authentication
- #elixirconf-us
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #blog-post
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-eu
- #distillery
- #security
- #processes
- #api
- #forms
- #hex










Showing Posts 1 to 3- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
Yamilquery
Hi guys! First of all, thank you so much for this ElixirConf 2018, was really awesome!
I was watching the ElixirConf 2018, specifically a video “ElixirConf 2018 – Breaking Down the User Monolith – Zach Porter”, in which he explains how to breaking down the User monolith. But I had a couple of doubts with it, and it seems to they disable the comments section in Youtube.
So, for that reason I’ll ask, if somebody have a github repo of this talk.
I was trying to replicate the exposed approach, but I got some errors.
The trouble that I have is with the embedded_schema. Because I was watching the video and it’s seems to be incomplete, he don’t explain how to declare the structure for the user schema, using something like embedded_one and also he don’t show how can we create the migrations for that embedded field.
I found a tutorial to do that thing, but I’m not pretty sure if it’s the best practices.
https://robots.thoughtbot.com/embedding-elixir-structs-in-ecto-models
Thank you so much!
zporter
Hey! Thanks for your interest in my talk!
Quick answers to your questions:
Not yet, but I am planning on finishing one that I started to accompany this talk. I can post here when it’s ready.
The example I gave using
embedded_schemas was around Registrations. I apologize if it wasn’t clear, but I’m not actually persisting that embedded schema to the database. I’m using it to provide structure to a form or a set of user inputs and to manage changes and validations for those inputs. I’m then relying on the existingUserschema as well as theCredentialschema to persist to the relevant tables in the database. I hope that helps to clear the example up some! Theembeds_oneandembeds_manyfunctions are very useful for storing in a JSON column in the database, and I’ve certainly done that before, but not in this case.If you have any further questions, please let me know.
Thanks!
ErionS
Hey!
Great presentation, just watched it.
Could I get the github repo with the code presented please as I too have been looking for the presentation code.
Thanks!