Dnx_7
asked on
C# : Strategy for mapping/storing business id
Hi,
I'm creating 3 services, let say : A/B/C
A has some business reference to C and vice versa.
So the B service has it owns database and it owns service that "speaking" with both A and C service.
Is it a good design/approach to do that or does it exists a generic pattern/strategy to apply for such situation?
Thanks in advance,
Kind Regards.
I'm creating 3 services, let say : A/B/C
A has some business reference to C and vice versa.
So the B service has it owns database and it owns service that "speaking" with both A and C service.
Is it a good design/approach to do that or does it exists a generic pattern/strategy to apply for such situation?
Thanks in advance,
Kind Regards.
ASKER
Hi,
Look at this scenario :
Service A : intranet
Service B : intranet/automation
Service C : automation
Service A only holds intranet concept and has no idea about automation.
Service C holds a reference to some table in automation system.
That's why, actually, my strategy is to create a third service (B) to aggregate results from the intranet AND automation/
eg : a user is created in the intranet (A) and has a unique id, this unique id is propagated into the automation service (C) as a business id.
so to have full information about a user + automation information, we request to service B. This one will request to both service to aggregate result to a "AutomatedUser".
More clear?
Thanks!
Look at this scenario :
Service A : intranet
Service B : intranet/automation
Service C : automation
Service A only holds intranet concept and has no idea about automation.
Service C holds a reference to some table in automation system.
That's why, actually, my strategy is to create a third service (B) to aggregate results from the intranet AND automation/
eg : a user is created in the intranet (A) and has a unique id, this unique id is propagated into the automation service (C) as a business id.
so to have full information about a user + automation information, we request to service B. This one will request to both service to aggregate result to a "AutomatedUser".
More clear?
Thanks!
That looks to be a sensible approach.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Nice explanation! Thanks
Please supply more detail and possibly a diagram.