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

  • SEARCH
  • Home
  • 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 4547210
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T16:03:43+00:00 2026-05-21T16:03:43+00:00

We (my team and I) have a big web project that will deal with

  • 0

We (my team and I) have a big web project that will deal with many users (at least 15,000 users!). In elaboration phase we decided to code in MVC style. We confront a tradeoff (in this project all of actions should be performed by authenticated users).

One way of designing could be: controller gets the request and according to it, creates (loads from DB) the responsible object for the request, then a reference of that object is saved to the controller and at last controller is added to the session of user. This style needs controller to be a coarse granular class with multiple behaviors among possible actions of user that have high frequency.

The other way of designing could be: controller gets a request then create the responsible object for the request but this controller is stateless and have specific behaviors according to for example one page of the web site. In this way for each page we should create a controller and if it needs information that common in some pages we must load them from DB or cache of it.

  • In first style, controller should be a coarse granular object because of decreasing creation and garbage collection, so it creates only one time after user is authenticated and won’t be garbage until session expiration. Life cycle of objects that exist in session is until the session is expired so I think it may be causes memory shortage!
  • In second style for every transition of user to other page one controller should be created and extracts information from DB, may be causes performance problem!

My request: I want to compare them with two aspects, memory usage and performance! And if there is any suggestion I will really happy to mention it!

For a simple example please see the below pic:

http://v1.iimmgg.com/images/is7gr/fb0f6b763eea5294815dcb2d50a12f56.png

  • 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-21T16:03:43+00:00Added an answer on May 21, 2026 at 4:03 pm

    My rule of thumb is to follow REST principles

    Every business entity is a resource. Resources should have controllers.

    Value objects like e-mails, money etc. are not resources.

    In few cases, controllers should be merged when simplicity over-weights complexity additional controller would add and entities are directly related.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

my team have built many tools for our project using win forms and Visual
Some complex subversion merges are coming up in my project: big branches that have
In the team I'm working in we have a big product with many WCF
I have a project going on right now that is really big data model
My team have 3 or 5 person.And we are working locally. and we decided
In our team we have a database project in visual Studio 2008 which is
I'm currently setting up CI for my project and have team city configure and
I am interested in the following scenario specifically. Suppose you have team that writes
We have a team that built an agent in Mono using MonoDevelop on Mac
I have a team set up on bitbucket with multiple users, and I'm using

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.