watermill icon indicating copy to clipboard operation
watermill copied to clipboard

Construct publisher/subscriber from DSN like URLs

Open sagikazarmark opened this issue 5 years ago • 0 comments

I think it would be nice to have a quick way to construct publishers/subscribers, similarly to https://gocloud.dev/concepts/urls/

That would allow configuring Watermill with DSNs like nats:// or amqp:// from config files or env vars.

Dependency is probably a question though. It could work similarly to how SQL driver registration works by simply importing the relevant packages.

sagikazarmark avatar Oct 18 '20 05:10 sagikazarmark