by @keathley
It’s mentally taxing to work in a system with a large number of services. One of the ways to combat that cognitive load is to use types to specify contracts between services. This system works well if you need to know if a key is a string or an integer.
But it turns out types fall short in their ability to specify the essential properties of your system. At Bleacher Report we’ve been feeling this pain acutely. To remedy this problem, we’ve been building our contract system. These contracts are applied at runtime and provide a common language for specifying the data moving through your system.
In this talk we’ll discuss the tradeoffs between type systems and contract systems, we’ll show the decisions that we made in our contract language, and finally discuss how to implement a basic system for specifying data.
View all threads tagged with testing
View all elixirconf2019 talks