7 votes
Accepted

When would you consider sharing a database to be fine? What are your rules?

Your "components" should probably be part of the same "service", even if they are run as different executables. If this is the case it should be fine if both access the same ...
JonasH's user avatar
  • 4,367
4 votes
Accepted

Child Entity or Aggregate Root?

"Don't play with another aggregate root's child entities" is a rule that is overrated because people tend to overuse aggregates and thus over-apply it: First of all, if we're talking about ...
guillaume31's user avatar
  • 8,524
3 votes

Child Entity or Aggregate Root?

OK I think I understand your problem. You have: Attraction { List<TicketOption> TicketOptions } Where adding and removing ticket options has invariants, But you also want TicketOptionRepo....
Ewan's user avatar
  • 72.4k
3 votes
Accepted

How does a Bounded Context from DDD help scaling microservices?

Bounded Contexts as a strategic pattern have several benefits: They are linguistic boundaries. A concept may have a different meaning to different parts of the business. By acknowledging this and ...
Rik D's user avatar
  • 4,709
1 vote

When would you consider sharing a database to be fine? What are your rules?

Working through your options: The background worker subscribes to "credit" domain events emitted by the REST API and stores the consumer' credit in its own database. My primary concern for ...
DavidT's user avatar
  • 2,346

Only top scored, non community-wiki answers of a minimum length are eligible