Source: Mindcracker Network
Source: Mindcracker Network
com)
Introduction
This Article series helps the .NET developers and architects to design the effective
applications on .NET latest technologies. There are so many articles,books on application
architecture but it is still challenging for developers to understand best practices,
principles for the application design.
This post speaks about the fundamentals concepts of Application Architecture and
principles.
Defining a solution which meets all technical and operational requirements by optimizing
performance,security and manageability.
Why Architecture?
Software must built on a solid considerations and failing to meet the key scenarios and
understand the design problems will lead to long term consequences. The application
needs to address the following concerns .
Goals of Architecture
Application Architecture builds the bridge between business requirements and technical
requirements. Good architecture reduces the business risks associated with the solution.
Architecture should consider
Approach to Architecture
You must determine the type of application that you are building and architecture styles
that will be used and cross cutting technologies.
Application Type
Deployment Strategy
When you design your application you must plan the infrastructure to deploy your
application. Your application must accommodate any restrictions that exist in the
environment. Identify infrastructure architecture early in the design process.
Architectural Style
Architectural style is set of policies and rules that we used in the component design later
that we use in the application.
1. Client-server
2. Layered architecture
3. MVC
4. SOA
These concerns are key areas in your design that are not related to any layer in your
application. You must consider the following concerns when you are designing your
application.
Authentication : Determine how to authenticate users and pass the identities across
the layers.
Caching : Identify what should be cached and where to cache to improve your
application's performance and responsiveness.
Exception Management : Catch exceptions at the boundaries and show meaning full
messages to the end users.
Instrumentation and Logging : Instrument all business and system-critical events and
log sufficient details. Do not log sensitive information.
Conclusion
This post explained the fundamentals of application architecture and in the next part of
the series I am going to explain about Architecture and Design guidelines.
Thank you for using Mindcracker Network
Introduction
Software Architecture can be described as structure of system, where system represents the collection of
components that accomplish a set of functions. This post explains the key design principles for software
architecture.
The above picture shows you the common application architecture and different components in the system
and how they work together.
Design Principles
Design Considerations
When designing a application, software architect is to minimize the complexity by separating the design into
different areas. For example UI processing components should not include code that directly access a data
source, instead it should use data access components to retrieve data.
Authentication
Failure to design a good authentication strategy can leave your application vulnerable to spoofing attacks
and session hijacking.
Authorization
Consider the following guidelines when you are designing the authentication strategy
Caching
You should use the cache for avoiding network round trips and avoid duplicate processing of data.
Do not cache the volatile data.
Do not cache the sensitive data unless you encrypt it.
Communication
It concerns the interaction between components across the layers. When crossing the physical boundaries,
you should use message-based communication.
When designing for concurrency and transactions for accessing the database it is important to identify the
concurrency data model that you want to use. The model can be optimistic or pessimistic.
Configuration Management
Data Access
Designing a Data Access Layer is important for application maintainability. The Data Access Layer should be
responsible for managing connections and executing commands against data source.
Avoid accessing database directly from other layers and should have the data access layer
interaction for DB operations.
Release the DB connections as early as possible.
Exception Management
Good Design of exception-management strategy is important for the reliability of your application.
Do not catch the internal exceptions unless you can handle them.
Design a appropriate exception propagation strategy.
Design a strategy for unhandled exceptions.
Design a appropriate logging and notification strategy.
Layering
Designing the layers allows you to separate the functionality into different areas of concern.