ducthinh2111 / weekend-project

0 stars 0 forks source link

[Speak] Asynchronous communication #23

Closed OzGhost closed 1 week ago

OzGhost commented 2 weeks ago

A: *hand out a task* help me doing this B: *take the task* let me check A: *turn away doing other stuff* B: *doing his stuff include taken task*

From that point on, A have no idea what is going on with the task he have pass on to B ;D

OzGhost commented 1 week ago

Solution: on A: expose an endpoint allow B notify on task done on B: expose 2 endpoint, 1 to receive task and other return task's status implement: A send task to B, B receive task then fork the work and return. On task done, B send notification back to A. Addition part of A, every 60 minutes, scan all task it have and synchronize status by asking current task's status from B.