Fork me on GitHub
#duct
<
2018-12-01
>
colliderwriter19:12:48

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?

weavejester19:12:58

:duct/handler or :duct/module?

colliderwriter19:12:29

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

weavejester19:12:45

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/

colliderwriter19:12:54

I was hoping that would be your opinion. The semantics were bugging me. Are "source" and "sink" at the right level of abstraction?

weavejester19:12:35

It seems a reasonable design to me.

colliderwriter19:12:57

Thanks. I'm still trying to work throuogh the model implications.