Click here to Skip to main content
15,893,381 members
Home / Discussions / C#
   

C#

 
AnswerRe: Quick Loading of WPF application Pin
SledgeHammer0112-Nov-14 5:04
SledgeHammer0112-Nov-14 5:04 
GeneralRe: Quick Loading of WPF application Pin
teek1312-Nov-14 8:32
teek1312-Nov-14 8:32 
GeneralRe: Quick Loading of WPF application Pin
SledgeHammer0112-Nov-14 8:59
SledgeHammer0112-Nov-14 8:59 
GeneralRe: Quick Loading of WPF application Pin
Eddy Vluggen12-Nov-14 9:15
professionalEddy Vluggen12-Nov-14 9:15 
GeneralRe: Quick Loading of WPF application Pin
teek1312-Nov-14 19:04
teek1312-Nov-14 19:04 
GeneralRe: Quick Loading of WPF application Pin
SledgeHammer0112-Nov-14 19:21
SledgeHammer0112-Nov-14 19:21 
GeneralRe: Quick Loading of WPF application Pin
teek1313-Nov-14 0:11
teek1313-Nov-14 0:11 
GeneralRe: Quick Loading of WPF application Pin
SledgeHammer0113-Nov-14 6:55
SledgeHammer0113-Nov-14 6:55 
If it's 15s in your prod environment, and 1 - 2s locally, then I'd assume that your prod environment is not up to snuff.

* How many machines are hosting your web service in prod? hardware / memory specs? what kind of network connection? etc. From my experience with WCF, I don't think you'd be able to host 2000 simultaneous connections on one machine. Especially if its an off the shelf PC with limited hardware. You aren't going to be able to use a $2000 Dell PC for this.

* What's your SQL box look like? Is it a seperate box from the web servers? Or is it running on the same box. SQL generally requires VERY beefy hardware in a production environment. I.e. a typical production SQL box at my company is spec'ed out at 24 core Xenon + 140GB RAM + flash storage + 10Gbps backbone and there are still some performance issues.

* If you don't have the resources for a beefy SQL box, the work around for that would be to cache all this static data in the web service as static data upon start up.

What I mean is, right now it sounds like (and corret me if I'm wrong) as the app is making 20 to 30 WCF calls upon start up and those 20 to 30 WCF calls make 20 to 30 SQL calls?

A better design would be to have the WCF service make the 20 to 30 SQL calls ONCE upon start up and keep the data in static members in the exact format you will need to return them. So now all your WCF methods would just be:

return _dictWhatever;

no need to lock or syncronize anything for multi-threading in WCF since it'll be created when the service starts up.
GeneralRe: Quick Loading of WPF application Pin
teek1313-Nov-14 7:22
teek1313-Nov-14 7:22 
GeneralRe: Quick Loading of WPF application Pin
SledgeHammer0113-Nov-14 9:12
SledgeHammer0113-Nov-14 9:12 
AnswerRe: Quick Loading of WPF application Pin
Eddy Vluggen12-Nov-14 8:04
professionalEddy Vluggen12-Nov-14 8:04 
GeneralRe: Quick Loading of WPF application Pin
teek1312-Nov-14 8:40
teek1312-Nov-14 8:40 
GeneralRe: Quick Loading of WPF application Pin
Eddy Vluggen12-Nov-14 9:14
professionalEddy Vluggen12-Nov-14 9:14 
AnswerRe: Quick Loading of WPF application Pin
Pete O'Hanlon12-Nov-14 9:43
mvePete O'Hanlon12-Nov-14 9:43 
AnswerRe: Quick Loading of WPF application Pin
NickPace12-Nov-14 10:45
NickPace12-Nov-14 10:45 
GeneralRe: Quick Loading of WPF application Pin
teek1312-Nov-14 19:20
teek1312-Nov-14 19:20 
Questionimage to text converter program Pin
arvindnitin711-Nov-14 5:56
arvindnitin711-Nov-14 5:56 
AnswerRe: image to text converter program Pin
Ravi Bhavnani11-Nov-14 5:59
professionalRavi Bhavnani11-Nov-14 5:59 
AnswerRe: image to text converter program Pin
Pete O'Hanlon11-Nov-14 5:59
mvePete O'Hanlon11-Nov-14 5:59 
Questionimage to text converter program Pin
arvindnitin711-Nov-14 5:54
arvindnitin711-Nov-14 5:54 
AnswerRe: image to text converter program Pin
Eddy Vluggen11-Nov-14 5:57
professionalEddy Vluggen11-Nov-14 5:57 
QuestionDate Diffrence Month Wise Pin
heyvid11-Nov-14 0:54
heyvid11-Nov-14 0:54 
AnswerRe: Date Diffrence Month Wise Pin
OriginalGriff11-Nov-14 1:19
mveOriginalGriff11-Nov-14 1:19 
AnswerRe: Date Diffrence Month Wise Pin
BillWoodruff11-Nov-14 4:54
professionalBillWoodruff11-Nov-14 4:54 
QuestionHow do I apply Farseer Physics Engine Collision on my image? I tried it on my codes and it is not working. I am using Farseer 2.1 Pin
Member 1094850810-Nov-14 21:37
Member 1094850810-Nov-14 21:37 

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.