Link to home
Start Free TrialLog in
Avatar of Dnx_7
Dnx_7Flag for Belgium

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.
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

After reading your question I must say I do not understand what you want to do / what your current situation is.
Please supply more detail and possibly a diagram.
Avatar of Dnx_7

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!
That looks to be a sensible approach.
ASKER CERTIFIED SOLUTION
Avatar of _TAD_
_TAD_

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dnx_7

ASKER

Nice explanation! Thanks