Skip to content
0:00 / 0:00

#eventsourcing#haskell#domain-drivendesign

Event Sourcing, Functionally - Arnaud Bailly

Domain-Driven Design Europe

37K subscribers • 3 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Presented by Arnaud Bailly, CTO of Capital Match

Intermediate. Assumes working knowledge.

3.2K views9 years ago1 recommendation

Software designProgramming languagesDomain-driven designHaskellSoftware architecture

Arnaud Bailly explains how to implement Event Sourcing in Haskell, leveraging pure and lazy functional programming features.

Domain-Driven Design Europe 2017 dddeurope.com - twitter.com/ddd_eu Pure and lazy functional programming languages seem a perfect fit to implement Domain Driven Design using Event Sourcing as a domain storage principal. Immutable and persistent data structures, call-by-need evaluation, memoization, referential transparency, compositionality and strong typing are some features offered by Haskell that provides building blocks for growing domain-centric and flexible applications. This session is a detailed walkthrough of one possible implementation of Event Sourcing in Haskell, drawing on the speaker's experience as CTO of Capital Match, a crowdlending startup based in Singapore whose system is built using this technology. We will implement a simple yet useful model, going through all the various stages and layers needed to expose a service, persist state, apply business rules, manage migrations, in Haskell. Along the way, we aim to demonstrate that Haskell, thanks to its pure lazy semantics and rich type system, provides useful tools for the practitioner to develop concise, expressive, composable and safe code.

Why it's here

1 person recommends this

What people say. Recommended as a practical guide to combining Domain-Driven Design and Event Sourcing with Haskell.

Moments people linked to

u/runeksin r/haskell • Recommends

Event Sourcing, Functionally - Arnaud Bailly (2017)

u/_jgtin r/haskell • Mentions

On “[Job] Haskell Programmer at Riskbook (Remote)”

Sure. It's not a hard requirement, but it would be great to see real experience (beyond some tutorials) with PBT and perhaps something like monad-mock. We do write tests with Hspec and yesod-test, but testing in general is an area I'd like to invest more in for our team. I'd love to see more of this kind of thing, for example.
5View on Reddit