Click here to Skip to main content
15,895,746 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralSorry for not Replying Pin
ursus zeta22-Sep-04 11:51
ursus zeta22-Sep-04 11:51 
Generalhelp in list view control Pin
bora3ee13-Sep-04 9:51
bora3ee13-Sep-04 9:51 
GeneralRe: help in list view control Pin
Tomas Petricek15-Sep-04 14:29
Tomas Petricek15-Sep-04 14:29 
Generalhelp in process class Pin
bora3ee13-Sep-04 9:49
bora3ee13-Sep-04 9:49 
QuestionIs there a way to use a DataTable in COM ? Pin
DavPen13-Sep-04 8:27
DavPen13-Sep-04 8:27 
GeneralImage filter for black and white images in GDI+ Pin
BLBANET13-Sep-04 4:07
BLBANET13-Sep-04 4:07 
GeneralRe: Image filter for black and white images in GDI+ Pin
Anonymous15-Sep-04 7:25
Anonymous15-Sep-04 7:25 
GeneralMultithreaded Design Question Pin
tulip1234512-Sep-04 0:01
tulip1234512-Sep-04 0:01 
Hi,

We’re in the process of designing a server-side application.

The first "filter" component of the server should receive requests from multiple concurrent clients over TCP/IP, each request containing an entity ID number. The filter should then process each ID and decide whether to pass it on to the next component (database) according to a given set of rules. The first version of the system should deal with around 20 concurrent clients producing ~1,000 requests per second, but future versions should be much more scalable (up to hundreds of concurrent clients and ~100,000 requests per second). The development environment is Microsoft .NET on Windows 2000 servers.

We came up with two possible architectures for the filter component:

1. Maintain a different communication thread for every client. Every such communication thread receives ID’s from its corresponding client and writes them into a common queue. A different worker thread reads data from the queue and processes the requests.

2. Maintain one communication thread for all clients. The communication thread reads ID’s and writes them into a queue. Several worker threads, managed in a thread pool, read data from the queue and process requests.

The first solution is obviously less scalable, since when the number of clients increases the overhead of a large number of threads starts affecting performance. Still, it is easier to code and it fits the first version/versions of the server.

Our question regarding the second solution, which seems more "server-oriented", is this: when taking into consideration the large number of requests per second and the fact that the processing time of each request is relatively short, isn’t the overhead of managing a thread pool, allocating a worker thread for every new request and returning it back to the pool when finished, etc. becoming too expensive ? Won't this affect the overall performance ?

In addition:

1. What should be the limit (roughly speaking) of the number of concurrent communication threads we can expect to run on a standard Windows 2000 machine ?
2. Is there any other alternative for the design of the filter component ? Are we missing something basic ?

Thanks in advance,

Amir.

QuestionHow to catch mouse click message? Pin
Volvere10-Sep-04 14:02
Volvere10-Sep-04 14:02 
AnswerRe: How to catch mouse click message? Pin
Tomas Petricek11-Sep-04 14:34
Tomas Petricek11-Sep-04 14:34 
GeneralCustomizing the .Net framework Launch Condition Message Pin
kornstyle10-Sep-04 6:20
kornstyle10-Sep-04 6:20 
GeneralRe: Customizing the .Net framework Launch Condition Message Pin
kornstyle15-Sep-04 3:45
kornstyle15-Sep-04 3:45 
QuestionCheck Process Running? Pin
tsunsau7179-Sep-04 23:01
tsunsau7179-Sep-04 23:01 
AnswerRe: Check Process Running? Pin
Baris Kurtlutepe11-Sep-04 8:42
Baris Kurtlutepe11-Sep-04 8:42 
QuestionHow to know I am on a frame(GroupBox) Pin
Sreepathi9-Sep-04 15:54
Sreepathi9-Sep-04 15:54 
AnswerRe: How to know I am on a frame(GroupBox) Pin
Anonymous12-Sep-04 12:02
Anonymous12-Sep-04 12:02 
GeneralRe: How to know I am on a frame(GroupBox) Pin
Anonymous27-Sep-04 10:49
Anonymous27-Sep-04 10:49 
GeneralReplication Pin
mathon9-Sep-04 4:15
mathon9-Sep-04 4:15 
GeneralMultiple References Pin
Ben Swann7-Sep-04 21:57
Ben Swann7-Sep-04 21:57 
General.NET Applications working on non .NET Platforms Pin
karanba7-Sep-04 21:43
karanba7-Sep-04 21:43 
GeneralRe: .NET Applications working on non .NET Platforms Pin
Colin Angus Mackay9-Sep-04 4:41
Colin Angus Mackay9-Sep-04 4:41 
GeneralRe: .NET Applications working on non .NET Platforms Pin
karanba9-Sep-04 4:45
karanba9-Sep-04 4:45 
GeneralRe: .NET Applications working on non .NET Platforms Pin
Colin Angus Mackay9-Sep-04 5:21
Colin Angus Mackay9-Sep-04 5:21 
GeneralRe: .NET Applications working on non .NET Platforms Pin
Mathew Hall10-Sep-04 16:42
Mathew Hall10-Sep-04 16:42 
GeneralRetrieving all the machines in my network! Pin
Hercules016-Sep-04 19:43
Hercules016-Sep-04 19:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.