WCF服务呼叫速度慢 [英] Slow to call WCF service

查看:139
本文介绍了WCF服务呼叫速度慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个简单的wcf服务并发现了此问题.第一次调用该服务总是很慢.有什么办法可以解决这个问题?

I''ve create a simple wcf service and found this issue. It''s alway slow to call the service at the first time. Is there any way to solve this?

推荐答案

我们根本不熟悉您的代码或功能环境.换句话说,可能什么都没有.但是,我将开始查看服务本身以及它的功能,甚至是服务器的状态.也许必须唤醒硬盘驱动器才能检索数据或其他内容.
We''re not at all familiar with your code or your functional environment. In other words, it could be ANYTHING. However, I would start looking at the service itself and how much it''s doing, or even the server it''s on. Maybe it has to wake up the hard drives to retrieve data or something.


一些CodeProject文章可以帮助您入门:

3种执行WCF实例管理的方法(每次调用,每次会话和单个) [ WCF简介-第1部分 [逐步使用wpf + wcf + wf编写"Hello World"程序 [^ ],
与WCF的通信选项-第1部分 [
Some CodeProject articles can get help you to get started:

3 ways to do WCF instance management (Per call, Per session and Single)[^],
WCF Introduction - Part1[^],
Writing a ''Hello World'' program using wpf+wcf+wf step by step[^],
Communication options with WCF - Part 1[^].

—SA


WCF First Call Slow

URL formatted.


这篇关于WCF服务呼叫速度慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆