Monday, 20 February 2017

Rational Unified Process (RUP) methodology

Rational Unified Process (RUP) methodology

Question: What is RUP methodology?
RUP is a software development process from Rational, a division of IBM.


It divides the development process into four distinct phases that each involve business modeling, analysis and design, implementation, testing, and deployment. Question: What are four phases in RUP?
  1. Inception
  2. Elaboration
  3. Construction
  4. Transition
Question: What is Inception?
In this, development team determine if the project is worth pursuing? and what resources will be needed?.


Question: What is Elaboration?
Evaluation of The projects architecture and required resources.
Developers consider possible applications of the software and costs associated with the development.


Question: What is Construction?
The project is developed and completed.
The software is designed, written, and tested.


Question: What is Transition?
The software is released to the public. Final adjustments or updates are made based on feedback from end users


Wednesday, 8 February 2017

Difference between CreateConnection and poolConnection in NodeJS

Difference between CreateConnection and poolConnection in NodeJS


MySQL CreateConnection Example
var mysqlClient = mysql.createConnection({
         host     : 'localhost',
         user     : 'root',
         password : '',
         database : 'mydb'
}); 
mysqlClient.connect();
mysqlClient.query(
'SELECT id,name,email FROM `cmf_users` WHERE id = ' + data.uid, function (error, results, fields) {
    console.log(results);
});


MySQL PoolConnection Example
var mysqlPool = mysql.createPool({
       connectionLimit : 10,
       host     : 'localhost',
       user     : 'root',
       password : '',
       database : 'mydb'
});
mysqlPool.getConnection(function(err, mysqlConn) {
mysqlConn.query(
    'SELECT id,name,email FROM `cmf_users` WHERE id = ' + data.uid, function (error, results, fields) {
    console.log(results);
    }
    )
});