설명 없음

Peter Alcock 8a54c1df84 Update README.md 6 달 전
engine f4cfcf893e engine 2 년 전
engine-scaler 6fd784933f Scaling system for AWS Engine Workers 2 년 전
group_vars 91442ea621 ansible deployment 2 년 전
polipus-cassandra 51a1ff4c00 extensions 9 달 전
polipus-elasticsearch 51a1ff4c00 extensions 9 달 전
polipus-storage-mysql 51a1ff4c00 extensions 9 달 전
polipus-storage-s3 51a1ff4c00 extensions 9 달 전
roles 91442ea621 ansible deployment 2 년 전
www 7c49474e05 adding web dashboard frontend 2 년 전
.gitignore 7ec801018a Initial commit 2 년 전
INSTALL c30e6b515b Update INSTALL 2 년 전
LICENSE 7ec801018a Initial commit 2 년 전
README.md 8a54c1df84 Update README.md 6 달 전
Vagrantfile 19b6211f44 Create Vagrantfile 2 년 전
contactrocket.mp4 f5fedeaf19 Add files via upload 2 년 전
emails.jpg 0a98827e41 Add files via upload 2 년 전
engine.jpg 0a98827e41 Add files via upload 2 년 전
logo.png 80d086f86e Pretty Pictures 2 년 전
screenshot.jpg 80d086f86e Pretty Pictures 2 년 전
site.yml 4ba7a70a15 Create site.yml 2 년 전

README.md

CONTACTROCKET

Spent a summer building this marketing SaaS using Ruby on Rails and Sidekiq background processing to support an army of ruby web crawlers tuned specifically for rapid lead-generation automation and contact data enrichment for sales prospecting. Bulk collect emails, phone numbers, social media, and then link them by textual index proximity weighted confidence scores. I decided to give it away for free instead of monetizing it. Then I realized what a mistake that was as I watched competing products later grow to become $100 million dollar companies. But it's whatever. Coffee is for closers.

CONTACTROCKET

Deployment

PostgreSQL stores the records created from crawls, Redis is used in combination with a bloom filter and hiredis client (for performance) to keep track of all the pending crawl jobs and to track previously crawled URLs. ElasticSearch is used to make all of the returned results searchable, with each added record being asynchroniously indexed by the background workers to prevent bottlenecks. You will want to tune the Redis configuration to use the LRU cache policy (least recently used) for when it needs to choose what links to ultimately abandon after multiple retries. Using LRU will result in punting problematic URLs first when memory starts to bloat on the EC2 instance.

Dashboard

The dashboard uses websockets and AJAX to deliver live visual indicators of your crawlers progress.

Screenshot

Screenshot

Engine

ContactRocket Engine

Background processing engines are broken into separate parts for separate purposes. Social Media crawling is network intensive, cached page crawling is as well, returned data is very write-heavy on the I/O for RDS instances.

Scaling

If you want to crawl millions of websites in an evening with this you will need to use the deployment scripts I've included for Amazon Web Services' Auto-Scaling EC2 clusters. This will cost you a pretty penny, but I've optimized these scripts to dynamically configure themselves to whatever size EC2 you choose to use by making the deployment script aware of the number of cores and available memory on their server and adjusting the multi-threading configuration accordingly. Make sure you database connections match your worker threads counts. 10-25 is typically the appropriate range.

Testing

Capyabara's headless browser simulations are dependency nightmares. Use my https://github.com/peteralcock/rubylab repo to jump start TDD.