--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to clojure+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Am I right in thinking that in order to use https://github.com/stuartsierra/component every consumer of a component must also be a component?
For example, if I have a component DB and I want to use that DB in (defn blob-query [db criteria]...), do I pull the DB out of the system map and call it or am I expected to make a BlobQuery component which offers a (blob-query [criteria]) API?
I guess I got a bit misled with the combination of his "Customers"
example in the video, the "all or nothing" warnings and "I do not
intend that application functions should receive the top-level system
as an argument. Rather, functions are defined in terms of components.
" (from the front page on github).
I guess we can just (:interesting-component system) once the system has started?
Ah OK. I was confused a little about what makes a component, it isn't
just state it is also about lifecycle.
Imagine a "health-check" which polls some service to see if it is
there, it needs the service and some ohDear notifier component but it
doesn't have any state as such (or at least no state that changes over
time), but it does have a notion of start/stopping. This would be a
good candidate because it has a lifecycle.
Thanks Daniel.
--