CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
mutiple-tier design and structure of a web app

 



ygjohn
Deleted

May 27, 2001, 9:51 PM

Post #1 of 5 (2002 views)
mutiple-tier design and structure of a web app Can't Post

I recently took up a new project that is written entirely using OO concept with perl. the project has a 3-tier design that breaks the whole application into the following:
1. interface (html template)
2. businese logic (processes)
3. Action (Database interaction)

any read/write to the Db is done via the action objects. the business logic objects handle the functionalities and generates output to or accept input from the interface objects that present data to the user as well as provide input forms.

i found this a fantastic design structure as is clearly defined the scope of different layers of a web applications.

i recently learned that there are much more complex and superior design structure out there... an N-tier design.

i would like to hear the opinions of you guys on this area. Does anyone has anything/tots/resources/advices/discussion to share?

john


###
When i died, I'll go to heaven, coz i spent my life in hell.
###


freddo
User

Jun 2, 2001, 5:51 PM

Post #2 of 5 (1987 views)
Re: mutiple-tier design and structure of a web app [In reply to] Can't Post

Hi John,

i am currently working on a three-tier app, in visual basic -- shame on me Mad. Anyway, you are right when you say it's a really good design. Here are two links that may help you about learning 3/Tier apps:
Designing an n-Tier Application Using Visual Basic (Part 1 of 2)
Designing an n-Tier Application Using Visual Basic (Part 2 of 2)

i hope this helps
freddo

;---
ygjohn: sometimes. you talk too much.. hahaha..


ygjohn
Deleted

Jun 3, 2001, 7:38 PM

Post #3 of 5 (1979 views)
Re: mutiple-tier design and structure of a web app [In reply to] Can't Post

thanks freddo,

finally, someone that actually replies my post...
=)
john

###
When i die, I'll go to heaven, coz i spent my life in hell.
###


TheGame+
Deleted

Jun 4, 2001, 3:51 AM

Post #4 of 5 (1974 views)
Re: mutiple-tier design and structure of a web app [In reply to] Can't Post

More complex doesn't necessarily mean superior - on the contrary. :)
The reason you might have more than 3 tiers is mostly pragmatic. For instance, you already have some other application or busines logic that you want to rely on in your own environment, so from your own 'business logic tier', you call another business logic tier, which itself relies on a separate data tier, and you end up with a 4-tier application.
Or you might need to go through some application gateway to reach the other application first, so you end up with a 5-tier application.
Or you have some common request broker already (with 3 or more tiers of its own), and you want to access it from your own (interface+logic) application, and you end up with a 5-tier architecture again.

That's the kind of architecture you can end up with if you have lots of existing applications working in different environments, and you want to start linking them together for your own application.
Solving stability or performance problems in this kind of environments can be quite challenging because you easily end up with 'domino effects', where a glitch in one sub-component can have totally unexpected side-effects on other components 2 or 3 tiers away.

And that's where some common middleware (distributed transaction processing, message queuing, object request broker, whatever) linking all the pieces together becomes essential - typically an N-tier architecture.

But that goes a bit beyond the scope of Perl :)




freddo
User

Jun 10, 2001, 12:04 PM

Post #5 of 5 (1959 views)
Re: mutiple-tier design and structure of a web app [In reply to] Can't Post

Hi John,

no probs for replying. this site is REALLY user friendly, if people dont reply it's probably because they dont know the answer, but you are always welcome to post questions (ask Jasmine Smile ).

freddo

;---
ygjohn: sometimes. you talk too much.. hahaha..

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives