0
In a scenario where we have:
Application A: developed using
EntityFramework
. This application knows the structure of the database and is responsible for maintaining it.Application B: will be responsible for performing a background processing.
Communication between the two applications will be done through the scheduling of background jobs
.
The job
, will be scheduled as soon as a user performs certain action on aplicação A
.
This job
has as objective, to copy data that are in the aplicação A
for a EDM.
In my case I’m using the hangfire with Storage in a postgresql
.
What would be better?
To: In the scheduling of job
create and send a DTO
? (which could increase message scheduling processing and take up more space in managing jobs
)
B: Send only one id
and retrieve data from the aplicação A
within the aplicação B
? (But then I’d have to replicate the Entity Framework
for that application B)
What would be the best way to do that?