Hi Experts:
I have a web service which retrieves user profile from Active Directory and
a Database. Just wonder, which one is better way to use the web service if I
need to retrieve 100 users profile:
Choice-1: call the web service and retrieve all 100 users profile (with a
single thread);
Choice-2: start 100 thread, each thread retrieve one user profile.
What are your opinions on the Pros and Cons on the 2 methods above?
Thanks in advance !
Polaris 2 1447
"Polaris" <et*******@hotm ail.com> wrote in message
news:%2******** *******@TK2MSFT NGP09.phx.gbl.. . Hi Experts:
I have a web service which retrieves user profile from Active Directory and a Database. Just wonder, which one is better way to use the web service if I need to retrieve 100 users profile:
Choice-1: call the web service and retrieve all 100 users profile (with a single thread); Choice-2: start 100 thread, each thread retrieve one user profile.
What are your opinions on the Pros and Cons on the 2 methods above?
Hi Polaris,
You should prefer the first method if you are calling web service. In
general when calling a web service use 'chunky' (that returns big chunk of
data) calls instead of 'chatty' ones. In the second method you will have a
great delay caused by round trips to the web service. Nevertheless be aware
that you should find the optimal size of returned data, for example a 100 MB
of xml response could choke on the Internet.
Best regards,
--
Martin Kulov http://www.codeattest.com/blogs/martin
MCAD Charter Member
MCSD.NET Early Achiever
MCSD
Hi,
you could also consider (for performance, maintenance, layering) to
build a small NT-Service which does these 'retrievals of profiles' and
caches some. You're webservice will always use this service to do it's
requests and the service contact's AD and caches the results.
The NT-Service can now be made to accept "ranges", "entries", "dynamic
queries" etc etc.
Hope this helps,
Marvin Smit.
On Wed, 9 Nov 2005 03:16:46 +0200, "Martin Kulov"
<ku***@bezboklu k.abv.bg> wrote: "Polaris" <et*******@hotm ail.com> wrote in message news:%2******* ********@TK2MSF TNGP09.phx.gbl. .. Hi Experts:
I have a web service which retrieves user profile from Active Directory and a Database. Just wonder, which one is better way to use the web service if I need to retrieve 100 users profile:
Choice-1: call the web service and retrieve all 100 users profile (with a single thread); Choice-2: start 100 thread, each thread retrieve one user profile.
What are your opinions on the Pros and Cons on the 2 methods above?
Hi Polaris, You should prefer the first method if you are calling web service. In general when calling a web service use 'chunky' (that returns big chunk of data) calls instead of 'chatty' ones. In the second method you will have a great delay caused by round trips to the web service. Nevertheless be aware that you should find the optimal size of returned data, for example a 100 MB of xml response could choke on the Internet.
Best regards, This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Sai Kit Tong |
last post by:
I posted for help on legacy code interface 2 days ago. Probably I didn't
make it clear in my original mail. I got a couple of answers but none of
them address my issues directly (See attached response). My first reply
directed me to source code migration but I didn't have the source code. The
second reply mentioned about .NET interoperability (PInvoke I think) but I
MENTIONED THAT I COULDN'T FIND ANY DOCUMENTATION FROM MSDN LIBRARY BASED ON...
|
by: SDS |
last post by:
VS 2005 / .NET 2.0.50727 (Sept. CTP)
I've got a Windows Service application that I've pushed out to a few
other workstations. There is an unhandled except occurring somewhere
in the application at some point, but I can't debug it because the
diagnostic info written to the event log is nearly worthless. Here's
what I am getting:
EventType clr20r3, P1 myservice.exe, P2 0.7.0.19863, P3 435a627e, P4
myservice, P5 0.7.0.19859, P6...
|
by: Marshall |
last post by:
Hello,
I am wondering if it is possible to call a remote web service using ATLAS
and if so, how. I have read several docs which show how to call a web
service that is within the same project as the ATLAS 'enabled' web page but
that is all I have found.
In the example below, I would like to call the
OpenOnline.SaveToPDF.WebServices.Service web service. I get a javascript
error when trying to make the web service call saying that...
|
by: Griff |
last post by:
Overview
When the first call to our Web Service causes an exception, the Web Service
caches that user's credentials for its life time.
Details
We have a Web Service which uses Windows Authentication. Within the Web
Service we look at the current username and check which user Groups it
belongs to.
|
by: alho |
last post by:
The web service is called by a program running on pocket pc. When to
call the web service, the first call is still ok, but for the second
or later calls, it will throw "403 Forbidden" WebException. When to
test it using the web interface on pocket IE, everything is fine.
Before there was no such problem, it only happened within a week or
so. I suspect it's caused by the server's firewall settings, but how
come the first call is ok? This...
| |
by: plork |
last post by:
hi all i'm calling a web service method and can get it's results just
fine however i want to grab the repsonse message from the call
is anyone able to tell me how i do this?
results = service.getMethod(a, b, c, d)
then iterating through
for (int i = 0; i < results .Length; i++)
|
by: jojoba |
last post by:
Hello to all!
I have a fairly simple webservice running in asp.net ajax under c# (vs
2008).
I built the service and it runs just dandy when i test it by itself in
visual studio.
However, to make it work, i had to break up the webmethod into the
BeginXXX, EndXXX model
as per http://msdn2.microsoft.com/en-us/library/aa480516.aspx
But now, i can no longer call this method from javascript (since to
|
by: Nexstar |
last post by:
What is the fastest way to access the database for performance point
of view? Should a .Net application call a stored procedure directly or
should a .Net application call a web service, or use WCF, or is there
another way?
|
by: =?Utf-8?B?SmltIE93ZW4=?= |
last post by:
Hi John,
Hopefully this post will find its way back to you - or perhaps be answered
by someone else. As I mentioned in my last post on the earlier portion of
this thread, changing the serialization settings for the build handled the
initial slows we encountered when invoking the web service.
Since that time, we ported the original VB.net code over to C# - this was
done to make it cleaner easier to include the project in the rest of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |