JSConf JP 2024

Yuichi GotoYuichi Goto
1 min read

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.

0
Subscribe to my newsletter

Read articles from Yuichi Goto directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Yuichi Goto
Yuichi Goto

Typescript/Effect enthusiast, Functional Programming pragmatist, Co-author of “Perfect Ruby on Rails“, ex-CTO at a public company.