Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Midas application server block client access

Posted on 2003-10-25
7
Medium Priority
?
375 Views
Last Modified: 2010-04-05
The app server remote datamodule threading model is MultiInstance / Apartment,
and I connect to SQL server using ADO.

When a client connect to the app server and call a time consuming database query interface, then other clients all blocked until the query finished.

I have tried to connect using DCOM connection and Socket connection, same thing happens.

It seems that all job are queued by midas app server, and the server services client access one by one.

Why this happens? How to solve?
0
Comment
Question by:qdyoung
  • 4
5 Comments
 
LVL 6

Accepted Solution

by:
swift99 earned 2000 total points
ID: 9622450
Your server is running a single thread.  To gain parallelism, you need to split the communications thread from the database connectivity thread, and actually run several concurrent database connection threads.  For an enterprise scale service with a robust back end, 100 to 200 connections might be a good range to support.  For a WIntel based DBMS back end (MS SQL, Interbase, etc) I generally suggest one or two database threads per CPU.

For something a bit more robust for the communications piece, check out Midware from overbyte.delphicenter.com.  Midware allows you to separate the command logic from the database logic so that you can serve long requests in a separate thread.  The TWSocket communication component itself is non-blocking, so you can serve several thousand users concurrently from one communications thread.
0
 
LVL 6

Expert Comment

by:swift99
ID: 9622468
Allow one connection for every 50 users
0
 
LVL 6

Expert Comment

by:swift99
ID: 9622490
What is your back end DBMS - does it multithread?  if not, then you're in trouble.
0
 

Author Comment

by:qdyoung
ID: 9626687
My backend DBMS is Microsoft SQL Server 2000.

Any real parallelism solution for Delphi MIDAS?
0
 
LVL 6

Expert Comment

by:swift99
ID: 9628835
I use the MIDAS piece in briefcase model, and use direct API calls to the DB2 system here.  The MIDAS provider interface was not scalable enough for my purposes.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question