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 8750593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:53:40+00:00 2026-06-13T12:53:40+00:00

I am using ASP.NET MVC 4 for my website actually. This website will share

  • 0

I am using ASP.NET MVC 4 for my website actually. This website will share the same database than my game database (logins and user profiles). I will be using the WebAPI only for game logic and requests so there definitivly going to have high traffic there. I only serve 2 methods one for the authentification and one for the requests. (There a kind of huge architecture behind which i won’t explain here). Since ASP.NET MVC 4 can integrate rather easily the web.api by adding almost nothing i though myself.. why not adding the api directly to my website project to avoid code duplication. Do you think this is a good choice and why ?

Thanks!

  • 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-06-13T12:53:41+00:00Added an answer on June 13, 2026 at 12:53 pm

    Your question seems to be more of how should I scale-out and less about should I use Web API in same project as my website. Not knowing the details it is difficult to recommend how you should scale out, so I’ll stick with answering your original query about including the Web API in same Web Site or not.

    Assuming that that the game and game logic (Web Api) you are intending to be a part of your website e.g. http://www.mysuperniftygame.com (or whatever your URL is), then yes you probably want the Web API to be part of the web site. Why? That way you won’t be needing a sub-domain for your API requests e.g. gameapi.mysuperniftygame.com.

    Why is that important? Well, if your web site and web app are making API requests you likely don’t won’t to have to deal with cross domain issues where you’d have to incorporate things like JSONP or CORS just to make requests to your own Web API.

    As for scale-out and the API being a high amount of traffic, you can scale out the web front end(s) horizontally AND you should consider at least the following two things:

    1. Make the controller (API controllers in this case) lean by having the code implemented outside of the controller which is best practice
    2. Make the API controllers execute asynchronously which should help your web site and API continue to be responsive even if there is a long running request to your DB.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using ASP.NET MVC 4 for a website, and one of the things I'm
I'm using ASP.NET MVC to develop a website and I need to customize my
I'm planning to design simple website using ASP.NET MVC new technology. Many concepts are
Planning to create a new website for our product using ASP.NET MVC 4. Site
I have the following view definition in my asp.net mvc website: <% Using Ajax.BeginForm(UsrCtlChangePassword,
What are the advantages of using Asynchronous controllers in my ASP.NET MVC website? Please
I have several performance issue in my website. I'm using asp.net mvc 2 and
I'm writing a website in ASP.NET MVC, using the ASP.NET MVC 1.0 template that
I am trying to use NServiceBus with an ASP.NET MVC 2 website (using VS
I have an website on asp.net-mvc, I'm thinking of using paypal for payments, is

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.