3 tier architecture

39

Upload: baabtracom-mentoring-partner-first-programming-school-in-india

Post on 16-Nov-2014

1.459 views

Category:

Technology


6 download

DESCRIPTION

3 tier architecture

TRANSCRIPT

Page 1: 3 tier architecture
Page 2: 3 tier architecture

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
Page 4: 3 tier architecture

JOBS APPLIED = 0

RESPONSES = 0

Page 5: 3 tier architecture

[email protected]/ nithil padinare

peediyekaltwitter.com/nithilppin.linkedin.com/in/nithil.pp9995223505

3 Tier Architecture

Page 6: 3 tier architecture
Page 7: 3 tier architecture

Evolution to the 3-tier Architecture

Single Tier

Dual Tier

3-Tier

N-tier

Page 8: 3 tier architecture

Single Tier Architecture

Page 9: 3 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.

Page 10: 3 tier architecture

Two-Tier Architecture

Page 11: 3 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.

Page 12: 3 tier architecture

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

3-Tier Architecture

Page 14: 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.

Page 15: 3 tier architecture

• 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

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

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

User interface layer

ID NAME ADDRESS EMAIL PICTURE

Tbl_student_information

Page 19: 3 tier architecture

Presentation Layer

Page 20: 3 tier architecture

Business Access Layer - Properties

Page 21: 3 tier architecture

Business Access Layer

Page 22: 3 tier architecture

Data Access Layer

Page 23: 3 tier architecture

Presentation Layer

23

Creating an Object of Property Layer

Page 24: 3 tier architecture

Presentation Layer

24

Creating an Object of Business Layer

Page 25: 3 tier architecture

Presentation Layer

25

Data Object to Receive Data sent by Business Layer

Page 26: 3 tier architecture

Presentation Layer

26

Obtaining ID from Property Layer

Page 27: 3 tier architecture

Presentation Layer

27

Calling Business Layer Function

Page 28: 3 tier architecture

Business Access Layer

28

Calling Data Layer Function

Page 29: 3 tier architecture

Data Access Layer

29

Result Object Declaration

Page 30: 3 tier architecture

Data Access Layer

30

SQL Query Definition

Page 31: 3 tier architecture

Data Access Layer

31

Creating Object to receive data

Page 32: 3 tier architecture

Data Access Layer

32

Query Execution

Page 33: 3 tier architecture

Data Access Layer

33

Returning the Information of the Database

Page 34: 3 tier architecture

Business Access Layer

34

Retuning the Information of Data Layer

Page 35: 3 tier architecture

Presentation Layer

35

Returning Data From Business Layer

Page 36: 3 tier architecture

Presentation Layer

36

Displaying Result

Page 37: 3 tier architecture

Thank you…

Page 38: 3 tier architecture

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

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]