Expected Exceptions

Code, Software, and things that interest me

Tag: F#

Xando pt. 3 - JSON

Previously we looked at events and commands, and this time we’ll look at converting events (primarily) to and from JSON. The code can be used for commands too (with really minor modifications), but it’s primarily made for dealing with events. …

Xando pt. 2 - Events, Commands and State

In the previous post we talked about some general concepts of CQRS and Event Sourcing. In this one I’d like to get a bit more hands on with the problem. Namely, I’m going to look at what events and commands we need for our user system, and what state we should keep to enable writing our business logic. So, let’s start by analysing what a user can do. Or more more to the point, what a user can have done (which is a really weird sentence). Let’s talk about events. …