Cognician's new architecture with Clojure and Datomic
summary
Cognician describes a Clojure/ClojureScript frontend, Datomic-backed datastore, RabbitMQ workers and Memcached cache on AWS, launched on this stack a couple of months ago with only a few thousand users; client actions become an event stream stored as time‑stamped datoms, workers aggregate into leaderboards and email jobs, and peers cache immutable indexes in RAM so reads hit warm caches without bespoke caching code. Datomic uses a single transactor for writes, storage pluggable (Postgres now, Dynamo later), codebase is ~22,000 LOC Clojure plus ~2,000 LOC Python/Bash.
AI-written summary · about
chapters (29)
- 0:00Introduction and speaker intro
- 1:03Cognition startup background
- 2:06What is Cognition methodology
- 4:57Cognition interface and features
- 6:26Cognition use cases and clients
- 6:46What is Clojure programming language
- 9:22Clojure sample web app demo
- 10:25Cognition's event-driven architecture
- 11:48Web server and static assets setup
- 13:13Worker node and RabbitMQ integration
- 14:58Previous vs new tech stack comparison
- 15:19Introduction to Datomic database
- 16:04Datomic data modeling basics
- 18:13Datomic time-based facts and queries
- 20:42Datomic query examples
- 23:31Datomic architecture breakdown
- 25:17Datomic query performance and caching
- 27:29Memcached integration benefits
- 29:18Scaling Datomic strategy
- 31:04Event flow and caching summary
- 31:45Architecture benefits recap
- 32:07Cape Town Clojure User Group plug
- 33:02Q&A: Datomic write scalability
- 33:23Q&A: Architecture evolution
- 34:05Q&A: Datomic adoption rationale
- 35:11Q&A: User base and performance metrics
- 35:53Q&A: Time synchronization in Datomic
- 36:58Q&A: Clojure code structure
- 38:23Closing remarks
