Fork me on GitHub
#duct
<
2018-06-07
>
flowthing11:06:02

Started wondering why the duct.database.sql.Boundary record is in that namespace? Couldn't a boundary be something other than a database, too, like a REST API? Just wondering whether something like duct.service.Boundary or something might be more appropriate. Or maybe I'm misunderstanding something.

👍 4
scaturr23:06:00

I’ve been using a boundary per service - so its nice to have a database boundary, a different boundary for a REST API, etc…

scaturr23:06:23

Each boundary with a separate entry in config.edn

scaturr23:06:40

Like I have a boundary for the slack api that is just (defrecord Boundary [token])

weavejester23:06:52

One advantage of having separate boundaries for different services is that you get type errors if you try to use one boundary function with the wrong service type. It also keeps the services distinct.

👍 8
scaturr23:06:58

and then protocols for different aspects of the slack api - i.e DiaglogBoundary