Friday 23 August 2019

Is it a good idea to build a website ping/monitoring tool with Node.js?

I'm building a general-purpose website pinging tool, and need to make some kind of `setInterval` for pinging website with a given URL and check content on response.It seems obvious that I can just use `setInterval` to perform this, but it gets complicated if you consider having few hundred websites and each of them should be checked within a specific time interval. I had done a similar thing with Go by spinning separate coroutine for each individual timeout.With Node, I imagine that it is possible to do a similar thing using promises, but wanted to get some ideas if possible, is it a good idea to stick with Node for that kind of use-cases?Thanks!

Submitted August 23, 2019 at 05:33PM by tigranbs

No comments:

Post a Comment