JSConf JP 2024
Deck
https://decks.yasaichi.com/20241123/type-safe-lightweight-ddd-with-effect-schema
Abstract
At EARTHBRAIN, we have adopted “Effect,” an emerging TypeScript library, to develop an API gateway. This innovative library can separate main concerns from sub-concerns such as asynchronous and concurrent operations, error handling, and retry mechanisms, enhancing application robustness and scalability. However, as its core type is not a standard JavaScript type, you must carefully consider whether you can achieve the expected outcomes before adopting the library across the entire project.
This presentation will focus on the standard library-like aspects of Effect, exploring a pragmatic approach through a case study. Specifically, we will explore how to implement type-safe, lightweight Domain-Driven Design (DDD) using this library. Through this presentation, you will gain deeper insights into practical approaches leveraging advanced TypeScript technologies.