Hey Collin,

Op zondag 15 maart 2015 17:26:10 UTC+1 schreef Colin Yates:
>
>
> How do the worker fns actually get called - the dispatching is up to 
> you - I tend to have a bus (or channel) which is the glue underneath 
> the gateway. 
>
> For example, I might have: 
>  - a command bus which needs a command registry 
>  - a number of handlers which each handle a command 
>
> I might have: 
>  - a CommandRegistry component which exposes the actual registry 
>  - a CommandOneHandler component which depends on the registry and 
> registers command-one-handler as the handler of CommandOne. It might 
> actually register a (partial command-one-handler collab-1 collab-2 
> etc.) 
>  - a CommandDispatcher component which takes the command registry, 
> listens to commands and then dispatches to the correct handler 
>
 
I have like exactly this. But one problem i have that you create a circular 
dependency between your Registry & Handlers which causes a StackOverflow 
when trying to print the Registry from the repl. Any solutions to that. 


-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to