Suppose I created a system for my client that allows players to maintain a portfolio of bets and track their profits / losses over time. This system supports a lot of complex domain logic - bets on various sports, rolling winnings to other bets, etc.
Then my client wants to support the idea of โโhints. Mentors do not actually gamble; instead, create โtipsโ that are tips on which bets to place. The help sheets can be of different types - some may include tips on any event with a win, others - only tips on racing, etc. My client wants the system to track the performance of prompts in the same way that it tracks the performance of players, with an additional turning point that allows them to compare performance inside and between different types of tips (for example, who is the best horse?), Do they work better than football coaches? )
Now the language of the domain is completely different between players and tips, and there is an additional categorization of tips sheets that do not exist for player portfolios. This suggests that these are separate, limited contexts. However, there is a lot of common logic as they track performance over time.
So my questions are:
- Are these really separate limited contexts? I carefully add categorization to the context of the players (feels like a slippery slope).
- If they represent different contexts, I should:
- Separate the logic for tracking performance between them (i.e. share DLLs, banks, etc.)? This creates a tight realization of the connection between contexts that feel wrong.
- Leave the performance tracking logic in a limited gambling context, put the categorization logic in the prompt context context, and ask the gambling context to track performance? In this case, it seems that the hint context will send teams to the gambling context, which again feels wrong (I'm more comfortable with the events).
- Do something else ... some kind of composite layer that connects and correlates between both contexts?
Explanation
The portfolio of players and the sheet of the overturner are almost identical - the only difference is that the tip sheet can be classified (for example, horse racing, football, etc.).
Performance Tracking is a measurement of portfolio / sheet gain / loss.
Akash source share