##Subjet Thanks to Redis, create queue management system that can :
- Add a job
- Do the job and save the resul in the Elasticsearch
- Show the number of jobs that it has to do
- Show the number of jobs that have been done
It was decided that the job will send a 'GET' HTTP request on an url. The following markup language will be save in the Elasticsearch : title, url, keywords and description. Then it will show the page title and the page content to the user. Finally, it will display jobs that will be executed and the jobs that have been already done.
####What do you need ?
- Ruby : dynamic, open source programming language with a focus on simplicity and productivity.
- Redis : open source, BSD licensed, advanced key-value cache and store
gem install redis
- Elasticsearch : open source, distributed, real-time search and analytics engine.
brew install elasticsearch
- JSon : lightweight data-interchange format
gem install json ( to parse HTML)
- Mechanize : library used for automating interaction with websites
gem install mechanize
<!> You can launch <!>
bundle install
####Where do I start ?
- Launch Redis server :
redis-server
- Launch Elasticsearch :
elasticsearch --config=/usr/local/opt/elasticsearch/config/elasticsearch.yml
- Create jobs (irb)
load 'main.rb'
- Launch daemon (irb)
load 'daemon.rb'
- Find a saved data
####For more information, please see below : http://slides.com/mathieulaporte-1/nosql#/1