duct

2018-12-01T19:01:48.000500Z

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?

2018-12-01T19:02:58.001100Z

:duct/handler or :duct/module?

2018-12-01T19:06:29.001300Z

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

2018-12-01T19:07:45.001500Z

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/

2018-12-01T19:09:54.001700Z

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

2018-12-01T19:10:35.001900Z

It seems a reasonable design to me.

2018-12-01T19:13:57.002100Z

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