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
Redis is open-source NOSQL advanced Key-value database, which is written in C. ReDiS is the short form of “Remote Dictionary Server”, so you can write itRediS too based on the short form of Redis. It also referred to as a data structure server. This is more than the distributed key-value, in-memory , replication of key, for caching server.
Continue reading What is Redis?
There are number of question in mind when we think about
ConcurrentHashMap. All uses Map data structure to keep the data but one main difference is locking. Let us go one by one as follows.
Continue reading HashMap Vs HashTable Vs SynchronizedMap Vs ConcurrentHashMap
This is one of the important interview question that , what is basic differences between
Continue reading HashMap Vs ConcurrentHashMap
This is one of the important interview question that , what is basic difference between Vector and
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
Setting of replication on production is very easy with minimum of 3 or 2 ( if 2 then one node need to define as arbiter node which don’t keep data at all ).
Continue reading How to set the Replicat set in 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