Skip to content

Commit a542713

Browse files
committed
Update README.md with Flux pattern.
1 parent 191f2b6 commit a542713

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Presentation Tier patterns are the top-most level of the application, this is co
7171

7272
* [Model-View-Controller](#model-view-controller)
7373
* [Model-View-Presenter](#model-view-presenter)
74+
* [Flux](#flux)
7475

7576
### Architectural Patterns
7677

@@ -560,6 +561,14 @@ validation and for building to order
560561
**Applicability:** Use the Model-View-Controller pattern when
561562
* you want to clearly separate the domain data from its user interface representation
562563

564+
## <a name="flux">Flux</a> [&#8593;](#list-of-design-patterns)
565+
**Intent:** Flux eschews MVC in favor of a unidirectional data flow. When a user interacts with a view, the view propagates an action through a central dispatcher, to the various stores that hold the application's data and business logic, which updates all of the views that are affected.
566+
567+
![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/flux/etc/flux.png "Flux")
568+
569+
**Applicability:** Use the Flux pattern when
570+
* You want to focus on creating explicit and understandable update paths for your application's data, which makes tracing changes during development simpler and makes bugs easier to track down and fix.
571+
563572

564573

565574
# Frequently asked questions

0 commit comments

Comments
 (0)