later icon indicating copy to clipboard operation
later copied to clipboard

dynamic tasks consult

Open willin opened this issue 8 years ago • 0 comments

i have a Business Scenario like this

users.forEach(async (x) => {
  await updateUserInfo(x);
  later.setInterval(async () => {
    await updateUserInfo(x);
  }, later.parse.recur().every(random(50, 70)).second());
});

update each user status info every 50-70s.(Worry about performance if all tasks are 60s)

Questions:

  1. if there is a new user, how to startup a new task?
  2. if there a large amount of users (like 10k+), it's there a better way?

willin avatar Mar 08 '17 03:03 willin