Solved

Midas application server block client access

Posted on 2003-10-25
7
332 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
7 Comments
 
LVL 6

Accepted Solution

by:
swift99 earned 500 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now