We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Understanding the Introduction of Phoenix Contexts in Phoenix Framework
207
clicks
Source: elixirstreams.com
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.
Related posts
© HashMerge 2024