Hi Andy,

I'm not aware of such a project, but I can confirm that it is an approach
that we apply internally at AdGoji and has been working well for us.  For
instance, we have (simple) components that mock Kafka and Redis in a way
that make them feature compatible to these services in the context of our
platform. For Kafka we have one mock component for testing (so you can can
test what has been pushed to Kafka) and we have one for development that
just logs to the file system (in a human-readable) form.

Although it doesn't replace real testing with these external services, it
does make the development flow a lot faster as boot-time is quicker, easier
cleanup etc.

Cheers,
Jeroen

On Thu, Apr 30, 2015 at 5:54 AM, Andy Chambers <achambers.h...@gmail.com>
wrote:

> Hi All,
>
> I'm trying to follow the "component" architecture for an app I'm working
> on and wondered if I was missing something. In the "Just enough structure"
> talk, one of the examples Stuart presents is a DB component that contains
> just a small selection of DB related functions (i.e. insert, and query
> IIRC) so that when you need to mock it out for your tests, you don't have
> to implement the entire JDBC interface.
>
> This makes sense but I'm wondering if anyone has released such a subset
> (possibly expanded to include things like transactions, and maybe a few
> utility query builders) as open source ideally with a corresponding mock
> implementation. With the popularity of the component library, I'm surprised
> not to find ready made components I can just plug into my app.
>
> If there's nothing like this already, then I guess I have an idea for a
> new project. Anyone think this is a good idea or would everyone's ideal DB
> component look a little different? Look forward to hearing your thoughts.
>
> Cheers,
> Andy
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to