Understanding the Introduction of Phoenix Contexts in Phoenix Framework

190
clicks
Understanding the Introduction of Phoenix Contexts in Phoenix Framework

Source: elixirstreams.com

Type: Video

The article explains the historical context behind the introduction of Phoenix Contexts, which was introduced in Phoenix 1.3. Prior to this change, Phoenix followed a traditional MVC architecture. The Phoenix team decided to distinguish between the web portion and the core domain of applications, resulting in the implementation of Contexts. This change allows for better organization of code related to domain knowledge, enabling web layers to communicate effectively with core domains. The author provides an example of how product creation logic can now reside in the core domain through the use of Checkout contexts, providing clarity on how to use these Contexts.

© HashMerge 2024