From 52725ce9182290ae3f443d1d8411b66a87eb9083 Mon Sep 17 00:00:00 2001 From: Anatoly Date: Sat, 14 Nov 2015 10:29:44 -0500 Subject: [PATCH] [diff from component]: multiple separate systems --- doc/differences-from-component.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/differences-from-component.md b/doc/differences-from-component.md index deb8761..dd52e9c 100644 --- a/doc/differences-from-component.md +++ b/doc/differences-from-component.md @@ -144,6 +144,16 @@ will be brought transitively. ###### _conclusion: it's simple in Mount as well, but requires an additional step._ +### Multiple separate systems + +With Component multiple separate systems can be started in the same Clojure runtime with different settings. Which is very useful for testing. + +Mount keeps states in namespaces, hence the app becomes "[The One](https://en.wikipedia.org/wiki/Neo_(The_Matrix))", and there can't be "multiples The Ones". + +What Mount has going for it for testing is [starting / stopping parts of an application](https://github.com/tolitius/mount/blob/master/doc/differences-from-component.md#starting-and-stopping-parts-of-an-application) where only the part of the system that is being tested can be started. + +###### _conclusion: needs more thinking._ + ### Visualizing dependency graph Component keeps an actual graph which can be visualized with great libraries like [loom](https://github.com/aysylu/loom).