Тёмный

ElixirConf 2023 - German Velasco - Using DDD concepts to create better Phoenix Contexts 

ElixirConf
Подписаться 12 тыс.
Просмотров 9 тыс.
50% 1

Leave comments at: elixirforum.co...
Phoenix contexts were introduced in Phoenix 1.3. Four minor versions later, we’re still confused when trying to apply them in our applications.
Contexts may make sense in theory, but it is hard to figure out just what makes a good context when it comes to practice. At least I know I’ve created many “contexts” that became… glorified junk drawers.
That’s because Phoenix contexts are generic: they’re a namespace. So, even though they give us a nudge in the right direction, they don’t provide enough guidance to implement our own successfully.
That’s where domain-driven design (DDD) can help us.
Using DDD’s concepts, we can create different Phoenix contexts based on their role!
So, join me as we walk through different types of Phoenix contexts we can use in our applications. Some will be DDD’s bounded contexts (different from Phoenix contexts), others will be DDD entities, and others will be DDD aggregates.
By the end, you’ll have a more extensive toolset for creating Phoenix contexts and a new lens through which you can organize your Elixir modules.

Опубликовано:

 

8 окт 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии    
Далее
From $erverless To Elixir | Prime Reacts
22:34
Просмотров 111 тыс.
Inside Out 2: BABY JOY VS SHIN SONIC 4
00:16
Просмотров 3,4 млн
11 ming dollarlik uzum
00:43
Просмотров 391 тыс.
Learn Elixir: OTP, GenServers, Agents, & Tasks
13:05
Microservices are Technical Debt
31:59
Просмотров 331 тыс.
Phoenix LiveView Is Making Me Reconsider React...
36:59