473,394 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

server infrastructure

Lets say I have all my web services in a separate project in VS.NET. And by
referencing them in a particular web application, the dll's get
automatically put into the bin directory. I know that some people split the
web services off onto a separate box. How is this best done -- I mean, the
dll's are in the bin directory automatically. If I delete them, how is the
web application going to know to look for them on another box.
Also, if I have a server farm of 3 IIS boxes, and then create a 4th IIS box
for the web services, am I buying anything in terms of performance, since
anyways the 3 are going thru the bottleneck of 1 component server (web
services) box, in order to hit the database. I guess I'm just wondering
what the tradeoffs are, and what the best practice is.

TY



So, I create the web services as a separate project - a separate web site?
I assume I would add a 'web reference' instead of a regular reference, to
the web service, or how do I tell the application where to find it. I'm
guessing when you add reference to the web service, thats what web reference
is for?

Also doesn't this slow down your application, using a web reference vs
having the dll proxy represent the web service, right in the bin directory
of the local app. Or, (assuming the LAN is extremely fast), the
web-reference to a web service on a separate box is not really a performance
issue.

Nov 15 '05 #1
2 927

" Jason Shohet" <as****@hotmail.com> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
Lets say I have all my web services in a separate project in VS.NET. And by referencing them in a particular web application, the dll's get
automatically put into the bin directory.
You are not supposed to reference the web services directly through project
or file references. Instead, you should create a Web Reference. When you do
this in VS.NET, it adds a web service proxy to your web application project.
In the web application you access the web service using the proxy class. The
web service DLLs will not get copied.
I know that some people split the
web services off onto a separate box. How is this best done -- I mean, the dll's are in the bin directory automatically.
No they should not be there. See my previous comment.

[snip]
So, I create the web services as a separate project - a separate web site?
I assume I would add a 'web reference' instead of a regular reference, to
the web service, or how do I tell the application where to find it. I'm
guessing when you add reference to the web service, thats what web reference is for?
Yes, exactly.
Also doesn't this slow down your application, using a web reference vs
having the dll proxy represent the web service, right in the bin directory
of the local app. Or, (assuming the LAN is extremely fast), the
web-reference to a web service on a separate box is not really a performance issue.


Yes it does slow down your application. Web services are not meant for
situations where you need to squeeze every nanosecond out of the code. They
are meant for situations where you need scalability and interoperability,
among other things. If you want speed, put the logic code in a separate
library project and reference it directly from your web application.

Sami
www.capehill.net
Nov 15 '05 #2

" Jason Shohet" <as****@hotmail.com> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...
Lets say I have all my web services in a separate project in VS.NET. And by referencing them in a particular web application, the dll's get
automatically put into the bin directory.
You are not supposed to reference the web services directly through project
or file references. Instead, you should create a Web Reference. When you do
this in VS.NET, it adds a web service proxy to your web application project.
In the web application you access the web service using the proxy class. The
web service DLLs will not get copied.
I know that some people split the
web services off onto a separate box. How is this best done -- I mean, the dll's are in the bin directory automatically.
No they should not be there. See my previous comment.

[snip]
So, I create the web services as a separate project - a separate web site?
I assume I would add a 'web reference' instead of a regular reference, to
the web service, or how do I tell the application where to find it. I'm
guessing when you add reference to the web service, thats what web reference is for?
Yes, exactly.
Also doesn't this slow down your application, using a web reference vs
having the dll proxy represent the web service, right in the bin directory
of the local app. Or, (assuming the LAN is extremely fast), the
web-reference to a web service on a separate box is not really a performance issue.


Yes it does slow down your application. Web services are not meant for
situations where you need to squeeze every nanosecond out of the code. They
are meant for situations where you need scalability and interoperability,
among other things. If you want speed, put the logic code in a separate
library project and reference it directly from your web application.

Sami
www.capehill.net
Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sandeep Nair | last post by:
Does anyone has a script which starts all the required processes for 10g AS? It should start iAS db, infrastructure, AS etc.
6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
1
by: Mark | last post by:
The company I work for has been running Access 2000 on a Windows NT server with Opportunistic Locking turned off on the server without issue for almost a year. We have just switched to a Windows...
1
by: alfredfx | last post by:
i'm planning to develop a client server system the client and server both able to upload picture client will upload the picture to a folder that reside in the server while server user can also...
1
by: meng | last post by:
i have recently been interested in exploring ATL server. i have been doing development on asp.net and server controls the past 1 year or so. in ASP.NET, the Page and ALL its contained controls get...
1
by: froowstie | last post by:
Hi folks, I work in IT, but on the infrastructure/engineering side. At work I'm now being asked to design infrastructure solutions to support new .NET applications. Typically, this...
25
by: _DD | last post by:
I'd like to include a 'Test Connection' button in an app, for testing validity of a SQL connection string. I'd prefer to keep the timeout low. What is the conventional way of doing this?
12
by: gavino | last post by:
Is there something one can use when leanring c to do the web or are scripting languages going to dominate the web? along w java perl ruby ptython tcl etcetc? I have net seen an open source c...
1
by: Michael | last post by:
Hello, I am trying to develop a database solution for an organisation in Indonesia. This organization has a number of offices and users throughout the country. They all need to maintain their...
2
by: walterbyrd | last post by:
Can somebody help me understand the difference? Not just where Python is concerned, but in general? As I understand it, an application server is supposed to be a great help in developing apps,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
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,...
0
jinu1996
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...
0
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...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.