Practical DDD in TypeScript: Repository

And how to implement the proper Anti-Corruption layer with a well-known pattern.

Marko Milojevic
JavaScript in Plain English

Photo by Adrian Sulyok on Unsplash

There are not many segments of software development that scare me, except integrations with other systems. Writing code for some business logic today looks easy with Domain-Driven Design.

However, writing code on the Infrastructure Layer to integrate some external system like 3rd party API, caching system, database, or any other type of storage, sometimes looks easy but hides potential disasters.

Disclaimer: Effective September 1st, 2023, the referral system on Medium
is no longer operational. If you appreciate this DDD series and would
like to endorse the efforts of both myself and fellow authors on Medium,
kindly demonstrate your support through claps, follows, or comments on
our blogs. Your consideration is greatly appreciated. Thank you in advance!

Other articles from the DDD series:

  1. Practical DDD in TypeScript: Why Is It Important?

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Responses (2)

What are your thoughts?

Awesome article, much appriciate whole series! Have learned a lot :)

--

Great article! I was wondering where to put DAO in the whole picture. I always find Java examples and I couldn't fit it into nest ecosystem. Once again thank you! 😊

--