F#: Enforce the creation of a Discriminated Union value via a dedicated function

I posted this question. The link above reflects a question that I had regarding how to enforce reliance on a function to create a value for a client. The solution is to have the client rely on Active Patterns that's publicly exposed while maintaining the privacy of the Discriminated Union type. This will prevent a …

F#: Event Sourcing

Intro I have been studying Event Sourcing recently and would like to document my understanding. As I understand, Event Sourcing is a technique used as an alternative to a CRUD (i.e. Create, Read, Update, Delete) model. I would like to think of event sourcing as a ledger for recording code execution that ultimately hydrates an …