Monthly Archives: April 2016

Difference between Redis and Memcached

redis_logo
In this article , I tried to find differences between Redis and Memcached. Sometimes, we guy used some tech stack based on our personal feeling, ideally which should not be the case, but we do. Before choosing to any one or before reaching out any conclusion, we should define some parameters , what is the demand of business? what we required and for why? what is our use case? i mean to say for how long this would be feasible, availability of resourses ( man power, server , environment, business context).
Continue reading Difference between Redis and Memcached

Difference Between ArrayList and Vector in Java

This is one of the important interview question that , what is basic difference between Vector and ArrayList?
There is nothing wrong or right of implementation, so it’s completely depends what you need and what you want to achieve. Interviewer asked this type of question to check the basic of candidate and slowly they increase the level of question and time on candidate.
Continue reading Difference Between ArrayList and Vector in Java

How to Prevent Secondary to become Primary in replica set

MongoDB
How to prevent secondary node of mongodb to become primary node is very easy by setting the priority of it , priority variable in mongodb has own priority while election to become primary. You can set priority in replication of mongoDB, this is basically used to prevent secondary to become primary. Setting of this is mongoDB replication environment variable is very easy process in mongoDB, following are the steps;
Continue reading How to Prevent Secondary to become Primary in replica set