Adding of index on primary in the replicaSet and that created index would replicate to Secondary node. But sometimes we required to create index on secondary only. The question is why we required on Secondary only, it’s basically for read optimize index as we read from Secondary.
Continue reading How to Add Index on Secondary Replicaset in MongoDB
Configuring of replicaset on mongoDB is very easy, if you know the basic of mongoDB and replication. My environment of this test Ubuntu 14, mongodb 3.
Continue reading How to Configure ReplicaSet in MongoDB on One Node
I tried to put together some questions in different section of mongodb, this has been collected while studying of mongodb.
Continue reading MongoDB Quiz
Understanding of HA ( High Availability ) of non functional requirement is not easy, it’s art with science. Being an architect, it is very important to understand cost vs acceptable downtime, i mean to say how much cost you are going to invest of servers and your acceptance downtime before committing to the stakeholder of your application.
Continue reading Understanding of High Availability NFR (Non Functional Requirement)
What is distributed system? Sometimes, this is very critical to define a system whether provided system is distributed or not ? well so this is completely depends on the surrounding attributed which you are looking for.
According to Andrew S. Tanenbaum
A Collection of Independent computers that appears it to users as one computer.
– Andrew S. Tanenbaum
How To Convert Java Object to JSON using Google’s Gson
There are different library available to convert from java object to JSON and JSON to Java Object. The 2 are most popular first one is Google’s Gson API and another one is Jackson API.
Continue reading How To Convert Java Object to JSON using Google’s Gson
Although, I do not prefer to use cookie but still it’s handy to use in JAX-RS services. Whether you are prefering or not is not the important, if it required to to solve our contextual problem it should be used. The @CookieParam annotation allows you to inject cookies sent by a client request into your JAX-RS resource methods.
Continue reading JAX-RS : Get Cookie value using @CookieParam in Jersey
In JAX-RS, binding of Header variable in the controller/service method is very easy by using
Continue reading JAX-RS : Binding of Request header using @HeaderParam in Jersey
In JAX-RS, binding of path variable in the controller/service method is very easy by using
Continue reading JAX-RS: How to Get Values from @PathParam in Jersey
In JAX-RS, mapping of formParam in the controller/service method is very easy by using
Continue reading JAX-RS : Binding of Html Form Fields Using @FormParam annotation in Jersey