Eirik Tsarpalis 10/30/2018

A Contract Pattern for Schemaless DataStores

Read Original

This article discusses the challenges of serializing discriminated union types in event-sourced systems and introduces a generic, boilerplate-reducing pattern using the UnionContract module from the TypeShape library. It provides code examples in F# for encoding/decoding events and explains how to achieve a canonical, serialization-agnostic representation for union types.

A Contract Pattern for Schemaless DataStores

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet