3 tier architecture
Upload: baabtracom-mentoring-partner-first-programming-school-in-india
Post on 16-Nov-2014
1.460 views
DESCRIPTION
3 tier architectureTRANSCRIPT
![Page 1: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/1.jpg)
![Page 2: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/2.jpg)
Disclaimer: This presentation is prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring PartnerBaabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd
![Page 3: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/3.jpg)
![Page 4: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/4.jpg)
JOBS APPLIED = 0
RESPONSES = 0
![Page 5: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/5.jpg)
[email protected]/ nithil padinare
peediyekaltwitter.com/nithilppin.linkedin.com/in/nithil.pp9995223505
3 Tier Architecture
![Page 6: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/6.jpg)
![Page 7: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/7.jpg)
Evolution to the 3-tier Architecture
Single Tier
Dual Tier
3-Tier
…
N-tier
![Page 8: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/8.jpg)
Single Tier Architecture
![Page 9: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/9.jpg)
Single-Tier Architecture
• In 1-Tier Architecture the file you want to work with must be accessible from a local or shared drive.
• simplest of all the architectures, but also the least secure.
• Since users have direct access to the files, they could accidentally modify, delete the file by accident or on purpose.
• simple and cheap, but usually unsecured and data can easily be lost if you are not careful.
![Page 10: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/10.jpg)
Two-Tier Architecture
![Page 11: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/11.jpg)
Two-Tier Architecture
• Because of the two components, it is also called Client-Server architecture.
• Client - runs the application. • Server - handles the database back-end• The client computer can only access the data by
starting the client.• Data on the server is much more secure.• Users are unable to change or delete data unless they
have specific user rights to do so.
![Page 12: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/12.jpg)
Two-Tier Architecture
• Allows multiple users to access the database at the same time .
• Server is processing data, which allows the client to work on the presentation and business logic only.
i.e, client and the server is sharing the workload.
![Page 13: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/13.jpg)
3-Tier Architecture
![Page 14: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/14.jpg)
3-Tier Architecture
• Involves one more layer called the business logic tier, service tier or middle tier (layer).
• In the client-server solution the client was handling the business logic and that makes the client “thick”.
o makes it difficult to use over slow network.• In 3-tier only little communication is needed between the
client and the business layer making the client “thin” or “thinner”.
• Example of a thin client • Internet browser - see and provide information fast
and almost with no delay.
![Page 15: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/15.jpg)
• Three-tier solution is more scalable, as more users access the system.
• middle layer protects the database tier, hence security is best.
• major drawbacks of N-tier architecture :• Increases the complexity.• Increases cost of installation.
3-Tier Architecture
![Page 16: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/16.jpg)
Differences among 1-Tier,2-Tier,3-Tier Architecture
1-Tier 2-Tier Multi-TierBenefits Very simple
InexpensiveNo server needed
Good securityMore scalable
Faster execution
Exceptional security
Fastest execution“Thin” clientVery scalable
Issues Poor securityMulti user issues
More costlyMore complex“Thick” client
Very costlyVery complex
Users Usually 1 (or a few) 2-100 50-2000 (+)
![Page 17: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/17.jpg)
3-Tier Application in ASP.NET
• The Program is organised into three major distinctive tiers or layers:– Presentation Layer (User Interface)– Business Layer (Business Access Layer)– Data Layer (Data Access Layer)
![Page 18: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/18.jpg)
User interface layer
ID NAME ADDRESS EMAIL PICTURE
Tbl_student_information
![Page 19: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/19.jpg)
Presentation Layer
![Page 20: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/20.jpg)
Business Access Layer - Properties
![Page 21: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/21.jpg)
Business Access Layer
![Page 22: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/22.jpg)
Data Access Layer
![Page 23: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/23.jpg)
Presentation Layer
23
Creating an Object of Property Layer
![Page 24: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/24.jpg)
Presentation Layer
24
Creating an Object of Business Layer
![Page 25: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/25.jpg)
Presentation Layer
25
Data Object to Receive Data sent by Business Layer
![Page 26: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/26.jpg)
Presentation Layer
26
Obtaining ID from Property Layer
![Page 27: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/27.jpg)
Presentation Layer
27
Calling Business Layer Function
![Page 28: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/28.jpg)
Business Access Layer
28
Calling Data Layer Function
![Page 29: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/29.jpg)
Data Access Layer
29
Result Object Declaration
![Page 30: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/30.jpg)
Data Access Layer
30
SQL Query Definition
![Page 31: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/31.jpg)
Data Access Layer
31
Creating Object to receive data
![Page 32: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/32.jpg)
Data Access Layer
32
Query Execution
![Page 33: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/33.jpg)
Data Access Layer
33
Returning the Information of the Database
![Page 34: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/34.jpg)
Business Access Layer
34
Retuning the Information of Data Layer
![Page 35: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/35.jpg)
Presentation Layer
35
Returning Data From Business Layer
![Page 36: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/36.jpg)
Presentation Layer
36
Displaying Result
![Page 37: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/37.jpg)
Thank you…
![Page 38: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/38.jpg)
If this presentation helped you, please visit our page facebook.com/baabtra and like it.
Thanks in advance.
www.baabtra.com | www.massbaab.com |www.baabte.com
![Page 39: 3 tier architecture](https://reader033.vdocuments.site/reader033/viewer/2022061117/5467d434af79591f378b769f/html5/thumbnails/39.jpg)
Contact Us
Emarald Mall (Big Bazar Building)Mavoor Road, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550
NC Complex, Near Bus StandMukkam, Kozhikode,Kerala, India.Ph: + 91 – 495 40 25 550
Start up VillageEranakulam,Kerala, India.
Email: [email protected]