enter image description here
Get the ideas to solve this problem.
1.the user click to enroll all
2.if 1000 staffs we want to make sure when all enroll is in hr/s8server/enroll.
3. the worker will loop 5 per 10s to subscript to machine and it will listen to this method for update status (you can see the diagram above).