Monday, 16 February 2015

                            {Mongo Db : Get It UPPPP and Running}

Hi ,
Lets start making a good backend software engineer (Not me ).
Basic misconception about software organizations i.e software developer means
A person who could code frontend pages  Its like saying A car is as good as its interface and  usability .... not the engine . Always remember every application is  data driven . Hence the optimized the data structure and architecture better the performance .

First step to a good configuration is good installation with all the right parameters.

I will get into details but first have a bite of Mongo Lets start with it

Download the latest mongo release from Mongodb.org(dont download src download binary ) .
It will be compressed hence please :) un compress it
Yeah good Job  50% of work is done
Now change directory to the mongodb uncompressed directory
and the you will see bin folder and a readme file
 Please Read readme file  "Thats why its there "

you will  find the basic information in it . It is not a wastage some body has devoted time Please READ IT
It will give info as follows

COMPONENTS

  bin/mongod - The database process.
  bin/mongos - Sharding controller.
  bin/mongo  - The database shell (uses interactive javascript).

UTILITIES

  bin/mongodump         - MongoDB dump tool - for backups, snapshots, etc..
  bin/mongorestore      - MongoDB restore a dump
  bin/mongoexport       - Export a single collection to test (JSON, CSV)
  bin/mongoimport       - Import from JSON or CSV
  bin/mongofiles        - Utility for putting and getting files from MongoDB GridFS
  bin/mongostat         - Show performance statistics

RUNNING

  For command line options invoke:

    $ ./mongod --help

  To run a single server database:

    $ mkdir /data/db
    $ ./mongod
    $
    $ # The mongo javascript shell connects to localhost and test database by default:
    $ ./mongo 
    > help

DRIVERS

  Client drivers for most programming languages are available at mongodb.org.  Use the
  shell ("mongo") for administrative tasks.

DOCUMENTATION

  http://www.mongodb.org/

MAIL LISTS AND IRC

  http://dochub.mongodb.org/core/community
 

  For Starting Mongodb change directory to bin

and    To run a single server database:

    $ mkdir /data/db
    $ ./mongod
    $
    $ # The mongo javascript shell connects to localhost and test database by default:
    $ ./mongo 
    > help

and ABRA KA DABRA Magic spell and MOngo is UPPPP ANd Runing

Thats all for Now we will dig deep with all the parameters nad scenarios in installation IN My Future Blogs

 


 
{MongoDB :"Is It Production Ready"}

Hi,
I have been using Mongodb for Past 3 Years .I have been asked ONe question always "Why should  I Use Mongo db". I dont have One Reason I have many .

Lets Take A example of driving a car
scenario 1: 
You go to the car open the hood create the engine and its parts and then design its usage rules .
It takes a lot of time and needs to much expertise.
scenario 2:
you go to the car open the car and you start the engine.
As  it is obvious second scenario is best.

You need not worry about data types ,table structure,access etc mongo does it for you .It has been designed for fast development of code.
It gives greater power to the coder. he becomes more powerful and responsible for data NOt the Dba

Hence very useful for Fast development.
Now Back to the title  : MongoDB :"Is It Production Ready"
"Hell Yeah"
It has many features  
1. Fast Development
2. High Scalability
3. Fault tolerance
4. Auto failover
5. MapReduce
6. Aggregation frame work

which gives us power to keep data in raw form and analyse it as we want without any constraints(Many in memory dbs have ram condtraints "HAHA mongo does not" ) .It Can be treated as  a mini big data platform (Big Data some other day)

In future Blogs i will one by one domonstrate the power of mongo ang make you from a Novice to a good to a better funny developer