title: Database Connection in Web Application
body: <p>The following are the different techniques we can use for database connection in a web application envrioment. </p>
  
  <ol>
  <li><code>Application Context Database Connection:</code>  only one database connection shared among all requests. </li>
  <li><code>Database Pooling:</code>  open a fixed number of database connection and share the connection among all requests. </li>
  <li><code>New Database Connection per request:</code> Open a connection for each request. </li>
  </ol>
  
  <p>What are the advantage and disadvantage of these techniques? Which one should a developer use?</p>