Dealing with domain modelling mismatches on external services
dev.to·4h·
Discuss: DEV
Flag this post

Integrating with external services is a pain. The technical challenges—reliability, performance, caching, downtime, and so on—are well-known and often solvable with infrastructure. But a less-obvious non-technical challenge is domain modelling mismatches.

Domain model mismatches happen because people see the same world differently. To you, it’s a House; to them, it’s a Building. To you, it’s a User; to system A, a Customer; to system B, it’s a Client. And the way we describe our world defines how we interact with it.

I’ve found that these mismatches are especially nasty in these cases:

  1. Multiple entrypoints. When entities in your system may be created or modified via other systems. Example: Your app has “Customers” that can sign up directly, but your sales/finance team …

Similar Posts

Loading similar posts...