Saturday, 19 March 2016

What are the pros and cons to code bots and scrapers in Node.JS?

Pros:
- Fast to write and easy to reason about
- Levereging non-blocking IO. You can run N instances and get nice results(where N is cpu core number)
- Everyone knows JS
- Probably easiest way to manipulate JSON ever
Cons:
- Not so fast
- !!! Dumb RegExp !!! (No lookbehinds)
- Not trully multicore - just one independent instance per core.
- Error prone




No comments:

Post a Comment