Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

3 tier seperation

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to figure out how to seperate tiers in an application.
Ok, lets say you are buidling a small/medium size application. It is just on one server and just a few clients connect to it. The database would have several tables. And there would do several different things requiring several views. How would you split this up? Would you just have a big interface between the layers?

Example: A car renting app. It sits on a server and several clients use internet browsers to access it. It would would at least have the users log in and then be able to rent a car. It would have a few database tables for users and a few for car/car renting. Would you just have a big interface for crud operations for all the tables. That would provide access to the data layer. Then just have a big interface for business methods like login, rent car?

Is that a good way or it there a better way to do something like this.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just saying you'll have a "big interface" between two layers isn't really enough for anyone to say if it's a good way to do it or not.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic