Fork me on GitHub
#duct
<
2018-07-11
>
psdp07:07:06

Hi, is MySQL not supported yet? getting an error ClassNotFoundException com.mysql.cj.core.log.duct.logger.timbre.TimbreLogger@45fc66c java.net.URLClassLoader.findClass (URLClassLoader.java:381) how to work around this?

myguidingstar07:07:49

though i'm not sure if latest version has it fixed yet. Are you using latest version?

razum2um07:07:57

Hi, I’m reading wiki/Boundaries article and thinking about “it’s good practice to have small boundaries” - does it mean in practice that the best protocol is usually 1 action (e.g. same thoughts about https://github.com/omcljs/om/blob/ee4c7ac33934fcd9b3ea663045ced1408dd7df24/src/main/om/core.cljs#L21 though it could be 1 react element protocol)?

razum2um08:07:57

maybe @U050B88UR already put some thoughts about protocol splitting in this context ^

razum2um07:07:12

@myguidingstar e.g. I look at https://github.com/walkable-server/realworld/blob/master/src/conduit/boundary/user.clj User has quite many fns, imagine you have to switch to read from cache (another duct key, not db) by-id/by-username or store relationships in another (graph) db..) - how will it affect the app? right now I don’t understand clearly what should be changed then? did you experienced such situation when you have to “split” a protocol?

psdp07:07:09

@myguidingstar Thanks! Will give it a try.

myguidingstar07:07:19

@razum2um I've never experienced such situation. Does it work if you extend the same protocol to something other than duct.database.sql.Boundary such as duct.database.redis.carmine.Boundary?

razum2um07:07:46

can work as a hack under discipline - both records can only partially implement protocol then and we should be careful not to call wrong one on another record. so effectively it’s about splitting protocols in real life..

razum2um07:07:39

another question about dependent boundaries: imagine you have to ensure author_id (user/by-id) presence here: https://github.com/walkable-server/realworld/blob/master/src/conduit/boundary/article.clj#L25 is it semantically correct? I feel something wrong with it (maybe end up with circular deps or smth else..)

razum2um07:07:35

and linked question - where will you put smth which requires a join between users and articles?

myguidingstar08:07:17

for that particular app, I ensured author_id presence from outside that boundary, which means boundaries' dependencies are managed outside of protocol implementations

👍 4
myguidingstar08:07:11

though I'm not sure it's the right way to do it. i haven't put enough thoughts on Duct's boundary things myself