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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:28:36+00:00 2026-06-05T02:28:36+00:00

The following is a schematic overview of the situation: WEBSERVER <—-> MIDDLEWARE SERVER <—->

  • 0

The following is a schematic overview of the situation:

WEBSERVER <—-> MIDDLEWARE SERVER <—-> Database

  • Webserver: IIS / ASP.net 4.0 (WebForms & MVC)
  • Middleware server: WCF Services
  • Database server: Oracle

The webserver is physically seperated from the Oracle database.

What we’d like to do is use ASP.Net Web API on the frontend of the webapplications to integrate quick binding of data in a new Single Page Application using JQuery / KnockoutJS. Therefore we would need a JSON API from the data in the database to access using JQuery.

We would like to use PetaPoco for talking to the database.

However, the WEB API project has to run on the middleware server to get it’s data from the database. But ofcourse then we can never access the WEB API using JQuery on the front end.

I’m thinking about setting up a WEB API on the Webserver, which connects to the middleware server using a different technique maybe plain old WCF like we do now.
However this seems like so much of an overkill.

Does somebody have some insights in how to improve this architecture? I’m sure somebody has set up a SPA application using WEB API in a similar environment.

  • 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-05T02:28:38+00:00Added an answer on June 5, 2026 at 2:28 am

    Physical layering has been considered a good thing for the last decade. N-Tier was good.

    The point here is that each layer should provide a real value. A layer just for the sake of layering is not good.

    So historically we were doing:

    1. DB => provide data
    2. Middle tier => provide services (business logic applied to data)
    3. ASP.NET website (presentation layer) => provide rendered views

    Now with SPA and new js-enabled rich clients, view is rendered on the client. As such the presentation layer of the service is redundant now (although might still be needed for low-end clients).

    My recommendation for a typical non-BigData scenario is 2 physical layers:

    1. DB => provide data
    2. Service layer => provide services

    In the service layer we will have 3 logical layers:

    1. Data access
    2. Business
    3. Web API providing data (and MVC providing rendered view to low end clients) to js-enabled clients, other clients (Silverlight, Air, etc) and other services and systems (federation, mash-up, B2B, …)

    And I believe in a js-enabled rich client.

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

Sidebar

Related Questions

Following this tutorial: http://viralpatel.net/blogs/2010/07/spring-3-mvc-tiles-plugin-tutorial-example-eclipse.html Tiles configuration ( tiles.xml ) : <?xml version=1.0 encoding=UTF-8 ?>
Following is my page & control hierarchy. Page UserControl 1 <Repeater1> //Contents of UserControl
Take the following, schematic html-code: <div> <span id='1' cust-attr='' /> <span id='2' /> <span
Following my question regarding a .NET YAML Library ... as there doesn't seem to
Following this question , I set the following MySQL parameter in C:\Program Files\MySQL\MySQL Server
Following is the association between 2 models: class FotoGossip < ActiveRecord::Base has_many :uploads end
Following recent hardware problems, I attempted to switch a couple of our websites to
Following the suggestions of FxCop and my personal inclination I've been encouraging the team
Following query is used for Getting Categories and one news for each category. How
Following is the script for matching regex and storing value in array: sub b1

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.