New · The Ash Framework book

Build Fast,Model Right.

Master the Ash Framework with 150+ hands-on lessons, exercises, and real-world examples — the modern, structured way to model domains in Elixir & Phoenix.

by Shankar Dhanasekaran & Nittin Shankar

150+
hands-on lessons
10
chapters
30-day
money-back guarantee
Ash Framework book cover

What's inside

10 chapters. 150+ learning objectives.

Everything you need to model real domains with Ash — built up step by step, with exercises at every turn.

01Ash Domain & Resources
Define structured data models, set up resources, and see how Ash simplifies domain modeling.
02Attributes
Manage data fields with type safety, defaults, and constraints like required or unique values.
03Relationships
Model one-to-one, one-to-many, many-to-many, and polymorphic associations the Ash way.
04Aggregates
Fetch summarized data — counts, averages, and more — without writing complex queries.
05Calculations
Compute dynamic values like formatted names, totals, or derived statuses from other fields.
06Validations
Enforce data integrity: email formats, non-empty fields, and input ranges.
07Identities
Set unique identifiers like emails or usernames to prevent duplicates and keep data consistent.
08Actions
Define how data is created, updated, deleted, and read using meaningful business action names.
09Changes & Preparations
Modify data before saving, or shape how records are fetched.
10Notifiers
Trigger real-time updates, emails, or webhooks when data changes.

Meet the authors

Written by people who use it daily to build great products

Shankar Dhanasekaran

Shankar Dhanasekaran

@shankardevy

Author & Elixir Trainer · ElixirConfEU 2023 Keynote Speaker

I'm a software engineer and Elixir trainer based in Auroville, with over 18 years of experience in web technologies and the author of the Phoenix Inside Out book series.

As an Elixir trainer I run programs from community learning for young adults to corporate trainings, and I've led workshops at ElixirConf and ElixirConfEU. My teaching is grounded in a simple belief: "Learning the hard way is the easy way."

Nittin Shankar

Nittin Shankar

@nittin_shankar

Principal Engineer at Luxmi ZB · Ash Trainer, ElixirConf US

I'm the Principal Engineer at Luxmi ZB, where I build conscious tech products, and I taught the Ash Framework training at ElixirConf US.

Beyond code, I'm passionate about entrepreneurship, and I try to bring an abundance of love, joy, and kindness to everything I do.

Shankar's keynote at ElixirConfEU 2023

Testimonials

Loved by the Elixir community

From the creator of the Ash Framework to years of readers across the books and trainings.

"Very cool ❤️. So excited to have more resources for folks to learn and apply Ash! I recommend this book for anyone who wants to use Ash to its fullest extent 🔥"

Zach Daniel
Creator of the Ash Framework

"So a book from you about Ash? That's an instabuy."

Nefcairon
Elixir Forum

"Just recently paid for your book — looking forward to reading it!"

Kallee
Elixir Forum

"I'm excited to read the book 😄"

sevenseacat
Elixir Forum

"The comments in the thread from your other book series are quite positive, so I'll give this a shot."

arcanemachine
Elixir Forum

"I think it's a nice idea to not focus on the UI — it gives you more room to focus on the domain concepts."

josh.nz
Elixir Forum

"I'm an early buyer of Shankar's books. He made me understand what “context” is all about. Garuda was a real surprise, Ecto clarifies a lot, and the Phoenix book has every little detail for building an ecommerce site. Excellent support too. Highly recommended, 5 stars."

sinanto
Phoenix Inside Out Series

"This book is probably the best book on Phoenix right now."

_russellb
Phoenix Inside Out Series

"I just picked up your books today and I wanted to thank you. I've only been reading for a couple of hours, but I've learned at least 5 things I didn't know about Phoenix before. Well done!"

Clinton
Phoenix Inside Out Series

"Going through the book feels like sitting next to a knowledgeable colleague introducing you to Phoenix. Full of interesting tidbits and explanations about internals — and I appreciate the TDD approach."

ezero
Phoenix Inside Out Series

"I read only some pages from the first book and skimmed the others, and I can bet it's a great resource for learning Phoenix — it teaches you the framework inside out (as the name says)."

pillaiindu
Phoenix Inside Out Series

"I learnt a lot from Shankar, especially the insights on how to manage and optimise memory in LiveView. I can't wait to use it at a hackathon next weekend."

DonkWook Lee
ElixirConf LiveView Training

"The link_navigate vs link_patch demonstration made it clear to me for the first time, and the security-hole demo on logout was super."

JMarfugi
ElixirConf LiveView Training

Who is this for?

Do you identify with the developer below? If so, this book is for you.

I'm already using Phoenix. Will this book help me?
Absolutely. While the book doesn't cover Phoenix directly, every example targets Phoenix applications. You'll learn to model domains efficiently with Ash, making your Phoenix apps more structured and maintainable.
I'm new to the Ash Framework. Is this for me?
Yes. The book takes you from zero to mastery — core concepts, relationships, queries, and best practices, step by step. No more piecing together outdated blog posts and broken tutorials.
Is this suitable for experienced developers?
Yes. If you want to speed up domain modeling, cut boilerplate, and enforce best practices, you'll learn to leverage Ash's powerful features — including multi-tenancy, authorization, and policies for complex scenarios.
I don't want to use Ash with Phoenix. Still useful?
Yes. Ash is backend-agnostic. You can apply its principles to any Elixir project, with or without Phoenix.
Does it only cover simple use cases?
No. It covers both simple and complex scenarios, with 150+ lessons and exercises to help you tackle real-world challenges.
Looking for hands-on, practical experience?
Then this is for you. The focus is on building things that work in the real world — not just in a controlled tutorial environment.

Love it, or it's free

I want you to feel confident buying this book. If for any reason it doesn't meet your expectations within 30 days, just let me know — I'll issue a full refund, no questions asked, and you keep everything you've learned.

And if money is tight, email me. Like the millions who freely shared their knowledge andCrowdTaughtme, I'm happy to offer discounted or free access — no questions asked.

$39.95

One-time purchase · lifetime access · free updates

Get the Ash Framework book

30-day money-back guarantee

More from devCarrots

The Phoenix Inside Out package

Before Ash, there was Phoenix Inside Out — the four-book series that taught thousands of developers how Phoenix really works, from building production apps with TDD to rebuilding the framework itself. Now available as one Complete Edition package.