3 tier architecture
Upload: baabtracom-mentoring-partner-first-programming-school-in-india
Post on 16-Nov-2014
1.459 views
DESCRIPTION
3 tier architectureTRANSCRIPT
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
JOBS APPLIED = 0
RESPONSES = 0
[email protected]/ nithil padinare
peediyekaltwitter.com/nithilppin.linkedin.com/in/nithil.pp9995223505
3 Tier Architecture
Evolution to the 3-tier Architecture
Single Tier
Dual Tier
3-Tier
…
N-tier
Single Tier Architecture
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.
Two-Tier Architecture
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.
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.
3-Tier Architecture
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.
• 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
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 (+)
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)
User interface layer
ID NAME ADDRESS EMAIL PICTURE
Tbl_student_information
Presentation Layer
Business Access Layer - Properties
Business Access Layer
Data Access Layer
Presentation Layer
23
Creating an Object of Property Layer
Presentation Layer
24
Creating an Object of Business Layer
Presentation Layer
25
Data Object to Receive Data sent by Business Layer
Presentation Layer
26
Obtaining ID from Property Layer
Presentation Layer
27
Calling Business Layer Function
Business Access Layer
28
Calling Data Layer Function
Data Access Layer
29
Result Object Declaration
Data Access Layer
30
SQL Query Definition
Data Access Layer
31
Creating Object to receive data
Data Access Layer
32
Query Execution
Data Access Layer
33
Returning the Information of the Database
Business Access Layer
34
Retuning the Information of Data Layer
Presentation Layer
35
Returning Data From Business Layer
Presentation Layer
36
Displaying Result
Thank you…
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
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]