Running Clojure on Azure Websites

Running Clojure on Azure Websites Lisp and Clojure in particular has long been on my list of languages to explore. Already having a MSDN subscription with monthly Azure credits it…

Continue Reading Running Clojure on Azure Websites

Commands and Aggregates in Datomic

I wanted to investigate how to implement something similar to my previous Event Sourcing examples but this time using Datomic. In particular, I wanted to keep the way commands are implemented in the domain, the way commands could be executed asynchronously and aggregates for consistency.

Continue Reading Commands and Aggregates in Datomic

Event Sourcing in Clojure

In this blog post I implement the same rock-paper-scissors domain using what I hope is idiomatic Clojure. By using immutable datastructures I show that snapshots of aggregate state is really nothing special and snapshotting should be implemented as a cache.

Continue Reading Event Sourcing in Clojure

Learn Clojure using records and protocols

Transitioning from Java to Scala was simplified by the fact that you could still write something similar to your old style Java code in Scala and then start learning the functional way and all other cool things available in Scala. When learning Clojure this threshold is higher as the language is so different than Java. However, by using records and protocols you should be able to do things in a similar way that you are already used to and then transition into more idiomatic Clojure.

Continue Reading Learn Clojure using records and protocols

End of content

No more pages to load