1 points · by gerenuk · 9y ago · 1 comment
Sometimes it works fine with 100 threads, and sometimes it completely stalls and become idle without giving any errors etc.
I was thinking about this approach:
- Golang to take care of the requests/HTTP work and store them in the DB. - Python for the NLP tasks etc.
Any insights/suggestion would be helpful.
I have started working a crawler in Go and each website to crawl can be configured via YAML files. The quantity of code written is a bit bigger than the python one made before, but a single micro instance on amazon is way enough to "read" few hundred websites every hour. Personally, I think the goroutine system is way easier to deal with compared to the Python one.
So if I was you, I would definitely give the IO processing to golang, and let python deal with the data processing.