Tuesday, 26 May 2015

Swagger Introduction

Swagger is a simple yet powerful representation of your RESTful API. With the largest ecosystem of API tooling on the planet, thousands of developers are supporting Swagger in almost every modern programming language and deployment environment. With a Swagger-enabled API, you get interactive documentation, client SDK generation and discoverability. it's 100% open source software. A Powerful INTERFACE to your API.

Wednesday, 7 January 2015

Servlets Life Cycle

A servlet life cycle can be defined as the entire process from its creation till the destruction. The following are the paths followed by a servlet

  • The servlet is initialized by calling the init () method.
  • The servlet calls service() method to process a client's request.
  • The servlet is terminated by calling the destroy() method.
  • Finally, servlet is garbage collected by the garbage collector of the JVM. Now let us discuss the life cycle methods in details.

Servlets Overview

Java Servlets are programs that run on a Web or Application server and act as a middle layer between a request coming from a Web browser or other HTTP client and databases or applications on the HTTP server.


  • Using Servlets, you can collect input from users through web page forms, present records from a database or another source, and create web pages dynamically.

Thursday, 1 January 2015

Setup MongoDB ReplicaSet in Simple Steps


Why Replication?

  • To keep your data safe
  • High (24*7) availability of data
  • Disaster Recovery
  • No downtime for maintenance (like backups, index rebuilds, compaction)
  • Read scaling (extra copies to read from)
  • Replica set is transparent to the application

Wednesday, 31 December 2014

Basic Operations in MongoDB


Below are various MongoDB statements.

Three database commands you should know.
show dbs – List all databases.
use db_name – Switches to db_name.
show collections – List all tables in the current selected database.


MongoDB Installation On Windows

In this tutorial, we will show you how to install MongoDB on Windows7 step by step.
  1. MongoDB 2.2.7
  2. Windows 7
Download the binary for your operating system from official site.

            http://www.mongodb.org/downloads

MongoDB Introduction

MongoDB  is an open-source document database, and the leading NoSQL database. Written in C++, with many great features like map-reduce , auto sharding, replication, high availability and etc.