TTA – Three Tier Architecture

printable-gears-cogs
printable-gears-cogs

What is “Three Tier Architecture”?
Three tier architecture describes a software solution that is logically divided into three layers or tears.

I could theorize about this subject all day long, discuss in depth the benefits it brings and advocate my full loyalty to it. But I’m not a theoretical person at all, I would much rather use practical examples to explain my theories.

If we imagine what most applications are composed of

  • Some sort of user interface
    • Graphical user interface
    • Web services
      • REST
      • SOAP
      • etc…
  • Some sort of business logic in the background that dictates how the application works
  • Some sort of data source
    • Database
    • Web Service
    • Files
      • XML
      • TXT
      • etc…

Where to begin?

The main issue I find in all the projects I do is to get a grasp on where to begin. If you don’t know where you start you can never reach the finish, right?

Well, as in every application (and this translates into real life for me), I find the best starting point to be the Functional Requirements.

Functional requirements usually summarize what the client wants from the application.

Once we get to grips with what is needed from the app, the next step is to logically determine how to go about it. We do this through the creation of many different graphs and diagrams such as ER diagram and class diagram, use case just to name a few.

One of the main problems with applications, especially for larger ones, is the sheer number of files you end up with. This number can run into the thousands. So the main question when you get to this point is “Where did I put that piece of functionality?” and especially when changing functionality “Did I change this in all the correct places?”.

Why do we need to keep track of what file(s) have which functionality? We don’t!

The Tiers

We already said the tiers are a logical grouping of functionalities didn’t we?

3tier
3tier

Presentation Tier

The presentation tier usually includes the graphical user interface for your users. But what if your users aren’t human? I think, and always enforce, that the presentation tier includes the web services as well. Web services are in essence the user interface for non-human users, such as other applications.

Application Tier

The application tier, or Business Logic Tier as I like to call it, usually includes the business logic rules of your app. To us, they are usually comprised of three main components

  • Entities
    • Entities are logical representations of objects or actors inside your application. They can sometimes include relationship links as well, these include
      • Composition
      • Encapsulation
      • Aggregation
    • Entities are usually represented by the Class Diagram when first designing the application
  • Controllers
    • The concept of the controller has been around forever. Usually when I ask someone what is a controller they can only reference controllers in an MVC architecture. Controllers in the application tier usually control the flow of data between the presentation and data tiers. In essence they act like police officers directing traffic, each car from a convoy is split into it’s correct lane and in the reverse direction the cars are organized from different lanes into correct convoys respectively. These guys are responsible for constructing entities when they are requested by the presentation tier, and respectively to tear apart entities and send the parts to the proper data source(s) when they are received from the presentation tier.
  • Helpers
    • Helpers are usually methods or operations that perform any task but are refactored. They can include anything from simple string operations to complex array sorting and searching algorithms. They usually are not “strictly” related to the application but rather are generic functionalities that are shared between projects.

Data Tier

“The data tier is composed of a database.”

NO!!!

The data tier can be composed of one database but it does not have to. What if you need to integrate, for example, a google api into your app? What if some info is stored on the hard disk in an XML file for use by another application later on?

The point is that the data tier is composed of any relevant data source where you need to write and/or read information. Period!

In short, using the three tier architecture model will help you logically order your code. It will make your application neater, you will not have to remember what is where and most of all you will get a very clear picture of how your app works.

Zlatko L | September 15, 2016

Leave a Reply

CONTACT USCONTACT US

grow your business today

Contact Name (required)

Organization Name (required)

What Are Your Interests/Needs

Web site(required)

E-mail (required)

Your Message

Our ServicesOur Services

WHAT WE CAN DO

Social Media Strategy

Our team will help you identify industry influences and future brand advocates, in order to build a passionate fan base that is active and regularly shares your content.

Content Strategy

Many organizations feel the need to  implement an editorial calendar to fill a content quota, but we recognize that without a strong content strategy this can be an incredibly wasteful investment.

 Content Writing

The content on your site tells your visitors who you are, encourages them to dig into your site .This content will be largely responsible for helping to attract visitors to your site.

Web Design & Development

Our team will help you identify industry influences and future brand advocates, in order to build a passionate fan base that is active and regularly shares your content.

Search Engine Optimization

Our team will help you identify industry influences and future brand advocates, in order to build a passionate fan base that is active and regularly shares your content.

WordPress Experts

We can create a beautiful, easy-to-use, custom site, or we can help you transfer your existing site to the best CMS on the Internet.

Our website design services are used by brands who are in need of a facelift. We design beautiful websites at affordable rates. Not only do the websites we develop look absolutely amazing, but we design them with your marketing goals in mind. High performing websites are focused on user experience, responsiveness across all devices, and clear call-to-actions to funnel traffic to your contact form or product page.

social ads guru digital marketin responsive design
Social Ads Guru Responsive Design

Our team firmly believes it is important to share what you know and to help others. We consult, hold workshops, speak at events, and offer IT support so we can to help spread some goodness in the world.

Our social media management services are designed to grow your brand’s online presence. We help your brand establish trust and build relationships with potential buyers. The benefits of using our social media management services consist of increased awareness, website traffic and lead generation. Additional benefits include influenced Google rankings, blog promotions, reputation management, and customer service to current and potential customers.

Web presence

We analyze yous business web page element as well as ranking on google.

Code Quality

We analyze your business web page code quality according to W3C standards.

Social Media Presence

We analyze social media presence and competitor using social data.

Social Ads Guru Analytics

SEO

We use web page analyzer for seo.

Brand Identity

We do brand identity analysis.

Google Trends

We use google trend facility based on Google search to show how often a particular search-term is entered .

Blog Blog

GURU DIARY
Why you should upgrade your Drupal to 8.8.0? – Open Source CMS New Releases

Drupal 8.8.0 — the last normal feature release of Drupal 8 — is now available for download. Some of the updates in this release include:

Stable Media Library:

The media library allows reuse of images, documents, videos and other digital assets across the website. The media library was previously a beta experimental module.

Media Library, experimental since Drupal 8.6.0, is a stable core module in Drupal 8.8.0. It does three main things:

  • Enhances the administrative media list page with a visual grid display of media thumbnails.
  • Allows users to select media for use in a field, or in a text editor, via a gorgeous, intuitive modal UI.
  • Enables authors to embed media items into text content, via the aforementioned gorgeous UI.

Experimental Administration Theme:

MOPRO CONTENT MANAGEMENT SYSTEM OVERVIEW

MoPro is a company Based in the USA, California and they offer services that include design, development and hosting your website. Not long time ago I had the chance to support on of sites hosted by MoPro on their servers and managed by their CMS.

Drupal 8 is out and it represents powerful new suite of tools
drupal-8-released
Drupal 8 represent powerful new suite of tools and the strongest link in content supply chain.

Drupal is an “out of the box” web content management tool and it represent high customizing platform – which help you build the right tool to serve your content management strategy.

Popular Travel #hashtags on Instagram

We are all curious about where other people are traveling and what are they researching and looking for on Social Media networks.

POPULAR-TRAVEL-HASHTAGS-min

Instagram rolls out its Live video feature in the U.S.

Instagram live video

Instagram’s latest features focus more on live streaming and less on photo sharing. On Monday, Instagram started rolling out its “Live” video-streaming feature to iOS and Android users in the U.S. The company first unveiled this feature in November, as a way to “connect with your friends and followers right now.” You will also be able to find popular Live videos in the Explore page. According to Instagram, Live will be available to everyone in the next few days.

Man Devotes His Life To Adopting Old Dogs Who Can’t Find Forever Homes

man-adopts-senior-dogs-shelter-steve-greig-51

Months kept passing after Steve Greig’s beloved dog died, but he still felt crushed. That’s when he decided he should give another dog a good life. But not just any dog. He went to his local shelter in Denver, Colorado to adopt the “least adoptable” senior dog, as these are the ones too often overlooked.

How to use Halloween marketing ideas for small business?

Halloween offers a unique opportunity for businesses to launch some fun and interesting marketing campaigns. This trend has expanded from USA to the whole world and each year we have the opportunity to catch some interesting ideas for promotion businesses.

Most interesting Tweets about Trump and power of hashtags

The campaign for United States presidential election of 2016 is in full swing and the elections are scheduled for Tuesday, November 8, 2016. These will be the 58th quadrennial U.S. presidential election.

Quick way to determine SoC’s GPU performance

 

Despite a common approach to employ usage of comprehensive benchmarks to determine performance of different hardware components of processing units, this if often not a great idea, mainly due to general limitations mentioned in my earlier blog post.

An alternative way to quickly predict the potential and a likely performance of a given GPU under stress in terms of its limits is to observe its raw „GFLOPs score. Although it isn’t a definite case, it is quite much a great predictor and it is definitely a great way to scope the potential of any given GPU.

What is Drupal and why should we use it?

drupal-8-released

Features of Drupal.

Drupal is number one platform for web content management among global enterprises, governments, higher education institutions, and NGOs. Flexible and highly scalable, Drupal publishes a single web site or shares content in multiple language across many devices. By using Drupal as solution business leaders transform their content management into powerful digital solutions.

CONTACT USCONTACT US

grow your business today

Contact Name (required)

Organization Name (required)

What Are Your Interests/Needs

Web site(required)

E-mail (required)

Your Message

Our ServicesOur Services

WHAT WE CAN DO

Social Media Strategy

Our team will help you identify industry influences and future brand advocates, in order to build a passionate fan base that is active and regularly shares your content.

Content Strategy

Many organizations feel the need to  implement an editorial calendar to fill a content quota, but we recognize that without a strong content strategy this can be an incredibly wasteful investment.

 Content Writing

The content on your site tells your visitors who you are, encourages them to dig into your site .This content will be largely responsible for helping to attract visitors to your site.

Web Design & Development

Our team will help you identify industry influences and future brand advocates, in order to build a passionate fan base that is active and regularly shares your content.

Search Engine Optimization

Our team will help you identify industry influences and future brand advocates, in order to build a passionate fan base that is active and regularly shares your content.

WordPress Experts

We can create a beautiful, easy-to-use, custom site, or we can help you transfer your existing site to the best CMS on the Internet.

Our website design services are used by brands who are in need of a facelift. We design beautiful websites at affordable rates. Not only do the websites we develop look absolutely amazing, but we design them with your marketing goals in mind. High performing websites are focused on user experience, responsiveness across all devices, and clear call-to-actions to funnel traffic to your contact form or product page.

social ads guru digital marketin responsive design
Social Ads Guru Responsive Design

Our team firmly believes it is important to share what you know and to help others. We consult, hold workshops, speak at events, and offer IT support so we can to help spread some goodness in the world.

Our social media management services are designed to grow your brand’s online presence. We help your brand establish trust and build relationships with potential buyers. The benefits of using our social media management services consist of increased awareness, website traffic and lead generation. Additional benefits include influenced Google rankings, blog promotions, reputation management, and customer service to current and potential customers.

Web presence

We analyze yous business web page element as well as ranking on google.

Code Quality

We analyze your business web page code quality according to W3C standards.

Social Media Presence

We analyze social media presence and competitor using social data.

Social Ads Guru Analytics

SEO

We use web page analyzer for seo.

Brand Identity

We do brand identity analysis.

Google Trends

We use google trend facility based on Google search to show how often a particular search-term is entered .

Blog Blog

GURU DIARY
Why you should upgrade your Drupal to 8.8.0? – Open Source CMS New Releases

Drupal 8.8.0 — the last normal feature release of Drupal 8 — is now available for download. Some of the updates in this release include:

Stable Media Library:

The media library allows reuse of images, documents, videos and other digital assets across the website. The media library was previously a beta experimental module.

Media Library, experimental since Drupal 8.6.0, is a stable core module in Drupal 8.8.0. It does three main things:

  • Enhances the administrative media list page with a visual grid display of media thumbnails.
  • Allows users to select media for use in a field, or in a text editor, via a gorgeous, intuitive modal UI.
  • Enables authors to embed media items into text content, via the aforementioned gorgeous UI.

Experimental Administration Theme:

MOPRO CONTENT MANAGEMENT SYSTEM OVERVIEW

MoPro is a company Based in the USA, California and they offer services that include design, development and hosting your website. Not long time ago I had the chance to support on of sites hosted by MoPro on their servers and managed by their CMS.

Drupal 8 is out and it represents powerful new suite of tools
drupal-8-released
Drupal 8 represent powerful new suite of tools and the strongest link in content supply chain.

Drupal is an “out of the box” web content management tool and it represent high customizing platform – which help you build the right tool to serve your content management strategy.

Popular Travel #hashtags on Instagram

We are all curious about where other people are traveling and what are they researching and looking for on Social Media networks.

POPULAR-TRAVEL-HASHTAGS-min

Instagram rolls out its Live video feature in the U.S.

Instagram live video

Instagram’s latest features focus more on live streaming and less on photo sharing. On Monday, Instagram started rolling out its “Live” video-streaming feature to iOS and Android users in the U.S. The company first unveiled this feature in November, as a way to “connect with your friends and followers right now.” You will also be able to find popular Live videos in the Explore page. According to Instagram, Live will be available to everyone in the next few days.

Man Devotes His Life To Adopting Old Dogs Who Can’t Find Forever Homes

man-adopts-senior-dogs-shelter-steve-greig-51

Months kept passing after Steve Greig’s beloved dog died, but he still felt crushed. That’s when he decided he should give another dog a good life. But not just any dog. He went to his local shelter in Denver, Colorado to adopt the “least adoptable” senior dog, as these are the ones too often overlooked.

How to use Halloween marketing ideas for small business?

Halloween offers a unique opportunity for businesses to launch some fun and interesting marketing campaigns. This trend has expanded from USA to the whole world and each year we have the opportunity to catch some interesting ideas for promotion businesses.

Most interesting Tweets about Trump and power of hashtags

The campaign for United States presidential election of 2016 is in full swing and the elections are scheduled for Tuesday, November 8, 2016. These will be the 58th quadrennial U.S. presidential election.

Quick way to determine SoC’s GPU performance

 

Despite a common approach to employ usage of comprehensive benchmarks to determine performance of different hardware components of processing units, this if often not a great idea, mainly due to general limitations mentioned in my earlier blog post.

An alternative way to quickly predict the potential and a likely performance of a given GPU under stress in terms of its limits is to observe its raw „GFLOPs score. Although it isn’t a definite case, it is quite much a great predictor and it is definitely a great way to scope the potential of any given GPU.

What is Drupal and why should we use it?

drupal-8-released

Features of Drupal.

Drupal is number one platform for web content management among global enterprises, governments, higher education institutions, and NGOs. Flexible and highly scalable, Drupal publishes a single web site or shares content in multiple language across many devices. By using Drupal as solution business leaders transform their content management into powerful digital solutions.