3 tier architecture

18
3 Tier Architecture

Upload: baabtracom-no-1-supplier-of-quality-freshers

Post on 10-Jun-2015

2.941 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: 3 tier architecture

3 Tier Architecture

Page 2: 3 tier architecture

Software Components

• We are in to building complex software applications and as you are

well aware most of the software will have a

– User interface (UI)

» Is what a user sees and interact with. Eg: GUI

– Business logic

»On which the programming logic has been build. Eg: Reports

– Backend

»Mechanism to store data permanently. Eg: Database

Page 3: 3 tier architecture

Software Architecture

• In order to achieve maintainability, Scalability and security we

may need to separate those components in to different layers and

tiers and there comes the relevance of software architecture

• Software architecture is the Process of defining a structured

solution that meets all of the technical and operational

requirements.

Page 4: 3 tier architecture

1-Tier Architecture

• Code for all the required component to run the application are

coupled tightly together.

• Ie. User interface, business logic, and data storage are all located

without any logical and physical separation

« Eg: MS Excel,

Page 5: 3 tier architecture

• Advantages

– Simple

– Easy to design

• Disadvantages

– Difficult for multiple users ie .Not Scalable

– Because they are not part of a network, they are useless for designing

web applications.

1-Tier Architecture

Page 6: 3 tier architecture

2-Tier Architecture

• All the required component to run the application are coupled

within client and server.

Client Applications

Database Server

Client

Presentation + Business LogicServer

Database

Client

PresentationServer

Database + Business Logic

OR

Page 7: 3 tier architecture

Client Applications

2-Tier Architecture

Database Server

Select * from tbl_cutomer

Some application developed in java/c++/.NET and installed

on clients computer

Page 8: 3 tier architecture

Points to be noted

• It is possible to implement the 2 tire architecture in a single

system as well. I.e. it’s not necessary to be in a client server model

always

• The only thing is that there should be a logical separation between

database and presentation with business logic coupled with any of

the other two layers

• By doing so, software installation will also includes installation of

the database

Page 9: 3 tier architecture

• Advantages

– Simple to implement compared to 3 - tier

– Easy to use

• Disadvantages

– Performance will be degrade upon increasing the users, since the

database server has to handle the business logic

– If client beholds most of the application logic, problems arise in

controlling the software version and re-distributing of new versions.

– Any change in an application should reflect all clients. If higher number

of users exists in the system

2-Tier Architecture

Page 10: 3 tier architecture

• All the required component to run the application are logically

separated ( and hence can be physical)

3-Tier Architecture

Client Browser – eg:Chrome

PresentationWeb Server Eg:Apache,IIS

Business LogicDatabase Server Eg:Mysql

Backend

Page 11: 3 tier architecture

Returns data

Request from Presentation layer

Apply business logic on the data

12

4

3

Connect with database server

5

WebServer

Processed data to be disaplyed in browser

Browser Database Server

Working of 3-Tier architecture

Page 12: 3 tier architecture

• Advantages

– Scalability – Each tier can scale horizontally

– Better Re-use

– Easy to maintain and modification is bit easy, won’t affect other

modules

• Disadvantages

– Increase Complexity/Effort

3-Tier Architecture

Page 13: 3 tier architecture

Points to be noted

• It is also possible to implement the 3 tire architecture in a single

system as well. I.e. it’s not necessary to be in a client server model

always

• The only thing is that there should be a logical separation between

database and presentation and business logic

Page 14: 3 tier architecture

Questions?

“A good question deserve a good grade…”

Page 15: 3 tier architecture

Self Check !!

Page 16: 3 tier architecture

End of day

Page 17: 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 18: 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]