Any ideas for isolated dev environments with Datomic Cloud?


#1

I’m the lead dev on a project with several other inexperienced devs. I really want to use Datomic Cloud, but I’m struggling to find a decent and inexpensive setup to let each dev have a logically isolated development environment.

One idea is that each dev could have their own Solo Topology. That’s a fair bit of setup for each person, especially given their experience level, but more importantly it would get fairly expensive even at the $1/day/dev mark. (Plus my devs are not full-time: more like 5–10 hours per week, which exacerbates both of these downsides.)

Another idea: create an EC2 keypair for each person to access the bastion for a single Solo Topology that we all share, and maintain some discipline around each using a separate :db-name. That seems like some work to manage all the keypairs and maintain the discipline, but maybe this is the best option? Similarly, we could also all share a single keypair, which has security implications of course.

I also thought of using Datomic Free Edition, e.g. using this Docker image and maybe Docker Compose. But then I learned that Free Edition doesn’t support the Client API, so we’d have to maintain parallel code paths: using the Peer API in the dev environment but the Client API in the prod environment, which sounds pretty messy.

Has anybody been down this road? What did you do? Any advice?


#2

Hi Jeff. We have been using datomic-client-memdb to facilitate local development with Cloud. It’s a small library that wraps Datomic Free in-memory databases with the Datomic Client protocols. To my knowledge, several other people are using this library, or a related, custom implementation, for a similar purpose.

I wrote the library so let me know if you have any questions.


#3

That looks like just what I need. Thanks very much!