際際滷

際際滷Share a Scribd company logo
NTiering A guide to N-Tier application design
NTiering A guide to N-Tier application design Badly Drawn Bob, NTiering logo
The Good Old Days An application typically used command line Performed only one function Used by trained operators
Nowadays ! Complex GUI's Multiple functions in one application Apps expect little or no user training
What is N-Tier? The practice of breaking an application into well defined regions. Each region has high cohesion Well defined paths into each regions
Advantages Lower TOC (total cost of ownership) Less code rot Looser coupling
What does it look like? Typically 3 layers (or tiers) UI Service Data
What does it look like? Typically 3 layers (or tiers) UI Service Data
What does it look like? Common Mistakes ! UI Service Data DTO / Common Classes
What does it look like? Common Mistakes ! UI Service Data DTO / Common Classes Using a common class to Move data means the UI  Layer is coupled to the data layer
What does it look like? Common Mistakes ! UI Service Data Validation Validation Validation
What does it look like? Common Mistakes ! UI Service Data Validation Validation Validation Repeated validation is the single most  common mistake in n-tier apps. Not only does this duplicate effort, but What happens if the validation  changes on the data layer but not in the UI
How does NTiering fix this? Enforces clear separation of tiers Encapsulates  validation (business rules) in the service layer Provides tools to produce boiler plate code
What does NTiering look like? 3 Tier application UI Service Data
What does NTiering look like? 3 Tier application UI Ntiering. UIExample Service Ntierning. Service Data Ntierning. Data
What does NTiering look like? 3 Tier application UI Ntiering. UIExample Service Ntierning. Service Data Ntierning. Data Models DTO's Customer Service Order Service
What does NTiering look like? 3 Tier application UI Ntiering. UIExample Service Ntierning. Service Data NTierning.Data Models DTO's Customer Service Order Service Models invoke validation using Services, allowing new UI's To be developed Add new services without impact  to existing application No longer tied to one database provider Change UI easily.  Business logic is in the service layer
What does it cost ? Free (as in beer!). Use it anyway you see fit. See Licence.txt Need help ? Mail me simonsmith.uk@gmail.com
Ad

Recommended

EclipseCon '09 - The Happy Marriage of EMF, Data binding, UI Forms and Field ...
EclipseCon '09 - The Happy Marriage of EMF, Data binding, UI Forms and Field ...
Tonny Madsen
tilemanager
tilemanager
Simon Smith
N-tier Application Developement
N-tier Application Developement
Detectivee Mirza
3 Tier Architecture
3 Tier Architecture
Webx
Funamentals of N-Tier
Funamentals of N-Tier
giangnguyen760
N tier
N tier
eleksdev
Client server architecture in .net by varun tiwari
Client server architecture in .net by varun tiwari
Bosco Technical Training Society, Don Bosco Technical School (Aff. GGSIP University, New Delhi)
N tier architecture
N tier architecture
Nidhi Saurav
N tier architecture
N tier architecture
Nidhi Saurav
N tier architecture
N tier architecture
Nidhi Saurav
N tier architecture
N tier architecture
Nidhi Saurav
N tier architecture
N tier architecture
Nidhi Saurav
N tier architecture
N tier architecture
Nidhi Saurav
N tier architecture
N tier architecture
Nidhi Saurav
N tier architecture
N tier architecture
Nidhi Saurav
N tier architecture
N tier architecture
Nidhi Saurav
3 tierarchitecture-091103063446-phpapp01
3 tierarchitecture-091103063446-phpapp01
asif khan
Layering
Layering
Samnang Chhun
Multi-tier Designs in Software
Multi-tier Designs in Software
Tharindu Weerasinghe
3 Tier Architecture
3 Tier Architecture
guestd0cc01
3 tier architecture
3 tier architecture
baabtra.com - No. 1 supplier of quality freshers
3-Tier Architecture Step By Step Exercises
3-Tier Architecture Step By Step Exercises
Miranda Anderson
A
A
sivamymom
.NET Architecture for Enterprises
.NET Architecture for Enterprises
Wade Wegner
3 tier structure asp dot net
3 tier structure asp dot net
techmodi_India
3 tier structure asp dot net
3 tier structure asp dot net
techmodi_India
3 tier architecture
3 tier architecture
tahir khan
C# .NET Developer Portfolio
C# .NET Developer Portfolio
cummings49
Bootstrap
Bootstrap
Simon Smith
rrr
rrr
Simon Smith

More Related Content

Similar to N Tiering (20)

N tier architecture
N tier architecture
Nidhi Saurav
N tier architecture
N tier architecture
Nidhi Saurav
N tier architecture
N tier architecture
Nidhi Saurav
N tier architecture
N tier architecture
Nidhi Saurav
N tier architecture
N tier architecture
Nidhi Saurav
N tier architecture
N tier architecture
Nidhi Saurav
N tier architecture
N tier architecture
Nidhi Saurav
N tier architecture
N tier architecture
Nidhi Saurav
3 tierarchitecture-091103063446-phpapp01
3 tierarchitecture-091103063446-phpapp01
asif khan
Layering
Layering
Samnang Chhun
Multi-tier Designs in Software
Multi-tier Designs in Software
Tharindu Weerasinghe
3 Tier Architecture
3 Tier Architecture
guestd0cc01
3 tier architecture
3 tier architecture
baabtra.com - No. 1 supplier of quality freshers
3-Tier Architecture Step By Step Exercises
3-Tier Architecture Step By Step Exercises
Miranda Anderson
A
A
sivamymom
.NET Architecture for Enterprises
.NET Architecture for Enterprises
Wade Wegner
3 tier structure asp dot net
3 tier structure asp dot net
techmodi_India
3 tier structure asp dot net
3 tier structure asp dot net
techmodi_India
3 tier architecture
3 tier architecture
tahir khan
C# .NET Developer Portfolio
C# .NET Developer Portfolio
cummings49
N tier architecture
N tier architecture
Nidhi Saurav
N tier architecture
N tier architecture
Nidhi Saurav
N tier architecture
N tier architecture
Nidhi Saurav
N tier architecture
N tier architecture
Nidhi Saurav
N tier architecture
N tier architecture
Nidhi Saurav
N tier architecture
N tier architecture
Nidhi Saurav
N tier architecture
N tier architecture
Nidhi Saurav
N tier architecture
N tier architecture
Nidhi Saurav
3 tierarchitecture-091103063446-phpapp01
3 tierarchitecture-091103063446-phpapp01
asif khan
3 Tier Architecture
3 Tier Architecture
guestd0cc01
3-Tier Architecture Step By Step Exercises
3-Tier Architecture Step By Step Exercises
Miranda Anderson
.NET Architecture for Enterprises
.NET Architecture for Enterprises
Wade Wegner
3 tier structure asp dot net
3 tier structure asp dot net
techmodi_India
3 tier structure asp dot net
3 tier structure asp dot net
techmodi_India
3 tier architecture
3 tier architecture
tahir khan
C# .NET Developer Portfolio
C# .NET Developer Portfolio
cummings49

More from Simon Smith (6)

Bootstrap
Bootstrap
Simon Smith
rrr
rrr
Simon Smith
There are only 3 operations in a web app
There are only 3 operations in a web app
Simon Smith
Producing Quality Software
Producing Quality Software
Simon Smith
Implementing Soa
Implementing Soa
Simon Smith
Generics
Generics
Simon Smith
There are only 3 operations in a web app
There are only 3 operations in a web app
Simon Smith
Producing Quality Software
Producing Quality Software
Simon Smith
Implementing Soa
Implementing Soa
Simon Smith
Ad

N Tiering

  • 1. NTiering A guide to N-Tier application design
  • 2. NTiering A guide to N-Tier application design Badly Drawn Bob, NTiering logo
  • 3. The Good Old Days An application typically used command line Performed only one function Used by trained operators
  • 4. Nowadays ! Complex GUI's Multiple functions in one application Apps expect little or no user training
  • 5. What is N-Tier? The practice of breaking an application into well defined regions. Each region has high cohesion Well defined paths into each regions
  • 6. Advantages Lower TOC (total cost of ownership) Less code rot Looser coupling
  • 7. What does it look like? Typically 3 layers (or tiers) UI Service Data
  • 8. What does it look like? Typically 3 layers (or tiers) UI Service Data
  • 9. What does it look like? Common Mistakes ! UI Service Data DTO / Common Classes
  • 10. What does it look like? Common Mistakes ! UI Service Data DTO / Common Classes Using a common class to Move data means the UI Layer is coupled to the data layer
  • 11. What does it look like? Common Mistakes ! UI Service Data Validation Validation Validation
  • 12. What does it look like? Common Mistakes ! UI Service Data Validation Validation Validation Repeated validation is the single most common mistake in n-tier apps. Not only does this duplicate effort, but What happens if the validation changes on the data layer but not in the UI
  • 13. How does NTiering fix this? Enforces clear separation of tiers Encapsulates validation (business rules) in the service layer Provides tools to produce boiler plate code
  • 14. What does NTiering look like? 3 Tier application UI Service Data
  • 15. What does NTiering look like? 3 Tier application UI Ntiering. UIExample Service Ntierning. Service Data Ntierning. Data
  • 16. What does NTiering look like? 3 Tier application UI Ntiering. UIExample Service Ntierning. Service Data Ntierning. Data Models DTO's Customer Service Order Service
  • 17. What does NTiering look like? 3 Tier application UI Ntiering. UIExample Service Ntierning. Service Data NTierning.Data Models DTO's Customer Service Order Service Models invoke validation using Services, allowing new UI's To be developed Add new services without impact to existing application No longer tied to one database provider Change UI easily. Business logic is in the service layer
  • 18. What does it cost ? Free (as in beer!). Use it anyway you see fit. See Licence.txt Need help ? Mail me simonsmith.uk@gmail.com