Font Awesome Free 5.13.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
Skip to main content

Boundaries and duplication

How architectural boundaries can create false duplication

Basic idea

Setting proper architectural boundaries can create false duplication, where things are the same right now but likely to change independently of each other in the future

  • Common with vertical slicing, where certain functionalities may start out looking similar but end up diverging significantly
  • Can also happen with horizontal slicing, for example the apparent duplication between a database row and the corresponding structure we send to the UI
    • It may be tempting to pass the database row directly to the UI, and in some cases this can be a good idea, but it isn’t hard to imagine that the structure of the data to show in the UI and the structure of the data in the DB could have to change independently of each other
  • Splitting into microservices can lead to some (apparent) duplication of data between databases

Trying to get rid of this kind of duplication is likely a bad idea (see also Duplication)

Resources

  • Clean Architecture (book by Robert C. Martin)
  • Building Evolutionary Architectures (book by Neal Ford, Rebecca Parsons and Patrick Kua) (summary slides )