Click here to Skip to main content
15,868,009 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

I would like to have many instances of the same service at the server.
Unfortunately, I cannot use multi-threads (3rd party dll's does not support multi-thread)

I thought to have some kind of router/switch which will get request from the client and depend on the occupancy of instances send this request to the free one.

For example: Let says service method takes 2 minutes to proceed. By standard implementation 5 request will take 10 mins. I would like to have a solution in which 5 instances of service are created on the server and proceed them parallel, so the total time will be around 2 mins.

I tried to play with Instances (
VB
ConcurrencyMode = ConcurrencyMode.Single,
        InstanceContextMode = InstanceContextMode.PerCall
)
and with Routing, but unfortunately without success.

Is any out of the box solution for that? or would you be able to point me how to start?

Thanks a lot,
M.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900