So often we look for the simple way out. For example, to generate graphs, we search for the best possible libraries and make the front-end un-necessarily heavy. Sometimes, we need to think out of the box and can use SVG to create simple graphs. Anuja talks exactly about how they used SVG to create simple … Continue reading How You Can Draw Graphs Fast & Easily With SVG
Category: General
Integrating ElasticSearch Into A Rails App
ElasticSearch is one of the popular Search Indexing engines today. Yogesh takes us on an interesting tutorial for integrating ElasticSearch into a Rails app – right from the initial thought-process till execution and performance.
There are plenty of indexing/search servers available out there like Solr, Sphinx, Elasticsearch, Google Search Appliance and many more.
But out of all the above, Elasticsearch is gaining more attention to it because of it’s popularity. This post is going to tell you only about it and it’s integration in Rails.
So, how would someone describe what an Elasticsearch is ?
From God’s perspective, it’s an open source, distributed, RESTful, search engine i.e. it has a very advanced distributed model, speaks JSON natively, and exposes many advanced search features, all seamlessly expressed through JSON DSL and REST API’s.
♦ Inception
Standard way of using ES in any application is to use it as a secondary data store i.e. data will be stored in some kind of SQL/NoSQL database and then continuously upserting required documents from it into ES, pretty neat.
Some of us might think why not use database itself…
View original post 1,116 more words
Houston, We’re Under Attack!
Yogesh talks about configuring and securing your Redis server to avoid attacks. Voice of experience rules!
Houston, you there ?? We’ve had a problem here.
One of our EC2 instance which has Redis server on it, got hacked out of nowhere.
Just before we knew it is hacked, we were screwing up with Redis configuration and thinking what could go wrong with it.
Houston – Roger that, give us more details.
Well, we’ve recently shifted our Redis server to new EC2 instance. The reason we had to do that was because, our Sidekiq processing got much bigger and we couldn’t afford it alongside the Nginx + Passenger. So we took a call to separate it out.
But while configuring Redis, we think we made some mistake :(.
Houston – What is that ?
Basically, we wanted the Redis to listen to all of our Passenger instances . Though by default, it listens on localhost because it’s bind directive is set to 127.0.0.1 , it’s possible to listen on multiple interfaces by providing multiple IP…
View original post 355 more words
