I'm playing around with a module which has a key which resolves to a function which is not semantically a handler. Should I derive from :duct/handler anyhow?
:duct/handler
or :duct/module
?
The module is an attempt at modeling a microservice queue processor, so it needs a source function and a sink function. The source is a queue reader and the sink is a handler
In which case, you probably shouldn't derive from :duct/handler
. You don't need to - it's just semantic information - and :duct/handler
refers specifically to Ring handlers/
I was hoping that would be your opinion. The semantics were bugging me. Are "source" and "sink" at the right level of abstraction?
It seems a reasonable design to me.
Thanks. I'm still trying to work throuogh the model implications.