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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:10:40+00:00 2026-05-24T11:10:40+00:00

This is going to be a pretty open ended question; but at this point

  • 0

This is going to be a pretty open ended question; but at this point this is all I have to start with. We currently have a 2 tier application design. What that means is that we have a C++ API that connects to our SQL Server and does typical database operations such as insert/update/query. We are looking to make this a 3-tier design with some sort of an application server sitting in the middle. The goal is that as we get more load; we do not need to deal with the DB being the bottle neck. The design is to have all communication from users happen with the ‘middle tier’ and then go to the DB. This will eliminate us putting our complex business rules in the DB triggers and have the middle tier handle them.
The thing I am still unclear on is what that middle tier looks like. Does it have to be a some sort of an WebService? All clients make some connection to the middle tier using HTTP and then we pass that on to the DB? As you can tell; from a C++ API to a webservice; thats quite a big shift. Any resources you have to help me get my mind going on this topic will be greatly appreciated. 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-05-24T11:10:41+00:00Added an answer on May 24, 2026 at 11:10 am

    Since you already have a C++ API that connects to our SQL Server and performs operations directly on it, this seems to be an already fit candidate to be refactored into the middle tier of your design. This code already manipulates the database according to some rules, which is exactly what your middle tier should do.

    The rest of the work that remains to be done is to separate the presentation logic from this API and allow it to reside in its own applications, that connect to the middle tier C++ API in order to have their data processed by it, stored in the database and the results returned back for being displayed to the user.

    As for the connection between the presentation tier and the C++ API, depending on what your requirements are, you may use either a proprietary communication protocol (implemented, for instance, through TCP/IP or RPC), or HTTP, by having an intermediary “relay” web-service that calls your C++ API from the server and returns back results to the caller. The HTTP choice, although faster to implement initially, has some aspects to consider, such as the fact that by default, it’s stateless (you’ll need to implement user sessions yourself) and that it will have to be kept in sync with the code, when public methods change during development.

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

Sidebar

Related Questions

This is going to sound like a silly question, but I'm still learning C,
This is going to be the noobist of all noob questions, but what exactly
I have been going over python tutorials in this resource . Everything is pretty
This is going to be hard to explain but I'll try my best. I
I know this one is going to be a long-shot, but I thought I'd
I may be going about this backwards... I have a class which is like
We currently use VSS 6, this is not going to change I am afraid.
i'm trying to make the following routes .. and currently i'm going about this
Not sure if this question is going to make sense or not be here
Is this functionality going to be put into a later Java version? Can someone

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.