Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5985827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:35:09+00:00 2026-05-22T22:35:09+00:00

I’m trying to figure out what are the layers that a web application needs

  • 0

I’m trying to figure out what are the layers that a web application needs in order to have a solid separation of concerns.
I’m working with medium to big applications with entities that frequently interact with each other.

So far I have the following

  1. Entity Layer – Models the business entities and is used in across the app

  2. Repository Layer – Deals with persistence and all the calls to and from the database

  3. Service Layer – Deals with business requirements

  4. Controller Layer – Deals with the Requests and only calls Services

  5. View Layer

Also for every entity there is a dedicated Repository and a dedicated Service

My questions are the following:

  1. Is it ok if one Entity Service references another Entity Service or should there be a new Service not bound to an Entity that uses the Entity Services?(this is a broader question: what is the interaction between layers)

  2. Should there be another layer between the Repository and the Services like a Manager(dedicated to an entity, containing business logic that pertains to that entity, just like the service in the original setup but only used but other Services) and a Service Layer that references the Manager Layer?(tbh this sounds overly complicated but if someone has some arguments for a Manager Layer and a Service Layer please tell me)

  3. Should the View Layer have access to the services that a Controller references?(in order to retrieve some lists or should all the information that a view needs be supplied by the controller?

Thank you

PS: I might ask more questions as I read the answers, if I think they’re important I’ll update the main post.
PS2: I’d appreciate if you could share any personal experience regarding this issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:35:10+00:00Added an answer on May 22, 2026 at 10:35 pm
    1. I would say yes, a service can collaborate with other services.
    2. No, this is an unnecessary over-complication.
    3. Controller really is a part of View; the two go together. It’s possible that a view might call services, especially if you’re doing a web UI with AJAX calls.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to loop through a bunch of documents I have to put
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have some data like this: 1 2 3 4 5 9 2 6
We're building an app, our first using Rails 3, and we're having to build
I'm making a simple page using Google Maps API 3. My first. One marker

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.