📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

📚 Interview question

How do you decide whether Address should be an entity or a value object in your domain?

Intermediate Theory Intermediate

🎯 Key points

  • Classification depends on the bounded context
  • Snapshot on an order = value object
  • Tracked over time with its own lifecycle = entity
  • Ask whether the business asks 'which one'

⏱ 30-second answer

It depends on whether the business tracks a specific address over time. For an order it is a value object: a snapshot of where to ship. For a postal service or a property-insurance system, where the address itself has a history, attributes and risk ratings, it is an entity with an Id. Ask the experts: "Do you ever ask which address?"

🔍 What the interviewer is checking

Checks that the classification depends on the domain, not the type name.

↩ Usually asked after

More in Domain-Driven Design

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me