Aligning Bounded Contexts with Subdomains in Legacy Code

Four Subdomains of Bernini
  • We discovered that sending an application is an activity performed as a consequence of a seemingly pivotal event NonApprovedMedicationPrescribed
  • There were already traces of a boundary in the source code as there existed separate .NET projects/assemblies supporting this feature.

Stage 1

  • Integration tests would provide early feedback and probably discover pieces of code that need closer attention during refactoring
  • On the other hand our progress on establishing the boundaries could be significantly slowed down due to amount of refactoring that was nevertheless needed in order for integration tests to run.

Stage 2

Stage 3

Takeaways

  • Are we still on the right path and can employ further refactorings or should we stop and re-validate our perception of alignment between subdomains and the proposed boundaries?

--

--

--

Domain-Driven Design Coach and one of Coworkers at CoWork, Norway. First Lego League mentor. My views are my own. Follow or DM me on Twitter @mufridk

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Deploy Hyperledger Fabric on Kubernetes (1)

Hey Rk Yadav thanks for the follow!

iOS 13 — Sign In with Apple ID

Why React is not for beginners

How to Install Android Studio-Majaro-Linux

In defence of Waterfall

Intro to Transferring Files Between AWS S3 and GCS

Learn to code By Making 2.5 D Space Shooter

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mufrid Krilic

Mufrid Krilic

Domain-Driven Design Coach and one of Coworkers at CoWork, Norway. First Lego League mentor. My views are my own. Follow or DM me on Twitter @mufridk

More from Medium

Why should we care about Semantic versioning?

What Is A Software Domain Model?

The Role of a Functional Prototype in Software Engineering

The Role of a Functional Prototype in Software Engineering

Designing applications at scale: Microservices and events — Part 1