4 ms·
You don’t need a thread pool or threads at all. Just schedule a timer for each server. You could do it in JavaScript. I’d even guess that a JavaScript implemen
by millstone 13y ago
You don’t need a thread pool or threads at all. Just schedule a timer for each server. You could do it in JavaScript.
I’d even guess that a JavaScript implementation would be more efficient than Go. A goroutine has an overhead measured in kilobytes; a JavaScript timer is presumably smaller.