473,503 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.NET Remoting vs. Web Services

Any comments on .NET Remotinv vs. Web Services? Which would you choose?

Thanks.
Feb 28 '06 #1
6 1449
Depends what I needed to do: if I needed to talk to a web-service, I'd
choose a web-service! (etc)

OK, being a bit more serious: remoting can be a pain; it demands incestuous
knowledge between the client and server (even if it is only an interface in
a shared assembly) - however, since it is generally used with binary
transports, it is quicker, and allows convenient use of e.g. marshal-by-ref
instances, proper tree serialization (instead of the light-weight xml
structure etc), and a few other things.

I would also recommend reading up on the proposed WCF details (part of WinFX
and formerly known as Indigo) - this provides an alternative to remoting for
talking between apps (e.g. services) in a schema-based way (similar to WSDL
for web-services).

Marc
Feb 28 '06 #2
Thanks for the thoughts, I think? I have a showdown meeting to attend and I
actually prefer web-services.

"Marc Gravell" wrote:
Depends what I needed to do: if I needed to talk to a web-service, I'd
choose a web-service! (etc)

OK, being a bit more serious: remoting can be a pain; it demands incestuous
knowledge between the client and server (even if it is only an interface in
a shared assembly) - however, since it is generally used with binary
transports, it is quicker, and allows convenient use of e.g. marshal-by-ref
instances, proper tree serialization (instead of the light-weight xml
structure etc), and a few other things.

I would also recommend reading up on the proposed WCF details (part of WinFX
and formerly known as Indigo) - this provides an alternative to remoting for
talking between apps (e.g. services) in a schema-based way (similar to WSDL
for web-services).

Marc

Feb 28 '06 #3
Really, you need to write down *what it must do*; it doesn't matter if one
technology is really cute at doing "x", "y" and "z" if it can't do "a"
(where your project needs "a"). Also note that the two are not necessarily
mutually exclusive, although you would be introducing complexity by using
both in tandem.

Example comparitors:
* Must it support non-.Net clients?
* Must it support 1.1 clients?
* Do we expect it to manage all security (authentication / encryption / etc)
for us?
* Do we need to be able to talk to different servers *at the same time*
* What performance profile do we need? (paired with data throughput)
* Do we need marshal-by-ref instances? (proxies held at the client that
forward invoked methods to the server silently)
* How complex is the data we are transporting - is it simple data, or
complex object-graphs?
* Must it work through firewalls?
* Must it work via intermediaries?

The list goes on...

Marc
Feb 28 '06 #4
It's actually pretty simple. The "component" needs to authenticate users to
active directory. However, a proposal was made to separate authentication
components on an application server (which I opose that too). So basically
there is an LDAP component on an application server that receives calls from
a remoting object on another application server that is called by the web
server in the DMZ. I think it's a bit too much. So now they are making the
argument that every application from this point must reference the remoting
object to authenticate users instead of a web service on the server closest
to the active directory server.

Hope you understand what was just described, cause I'm not certain I
understand it.

Thanks.

"Marc Gravell" wrote:
Really, you need to write down *what it must do*; it doesn't matter if one
technology is really cute at doing "x", "y" and "z" if it can't do "a"
(where your project needs "a"). Also note that the two are not necessarily
mutually exclusive, although you would be introducing complexity by using
both in tandem.

Example comparitors:
* Must it support non-.Net clients?
* Must it support 1.1 clients?
* Do we expect it to manage all security (authentication / encryption / etc)
for us?
* Do we need to be able to talk to different servers *at the same time*
* What performance profile do we need? (paired with data throughput)
* Do we need marshal-by-ref instances? (proxies held at the client that
forward invoked methods to the server silently)
* How complex is the data we are transporting - is it simple data, or
complex object-graphs?
* Must it work through firewalls?
* Must it work via intermediaries?

The list goes on...

Marc

Feb 28 '06 #5
Here are some great articles on choosing a distributed computing
technology (namely: Web Services vs Enterprise Services vs Remoting).

http://msdn.microsoft.com/webservice...g/default.aspx
http://msdn.microsoft.com/webservice...veguidance.asp

Most advice these days states that you really shouldn't be writing new
stuff in remoting unless you want to cross appdomains within the same
process (pretty unusual).

If your new component isn't going to be released for a little while the
best answer is WCF (Windows Communication Foundation, formerly
codenamed Indigo)... read this guide to get started with WCF - it is
the future of distributed computing on the Windows platform.

http://msdn.microsoft.com/msdnmag/is...n/default.aspx

Good luck!

Josh
http://www.thejoyofcode.com/

Feb 28 '06 #6
Thanks!

"Josh Twist" wrote:
Here are some great articles on choosing a distributed computing
technology (namely: Web Services vs Enterprise Services vs Remoting).

http://msdn.microsoft.com/webservice...g/default.aspx
http://msdn.microsoft.com/webservice...veguidance.asp

Most advice these days states that you really shouldn't be writing new
stuff in remoting unless you want to cross appdomains within the same
process (pretty unusual).

If your new component isn't going to be released for a little while the
best answer is WCF (Windows Communication Foundation, formerly
codenamed Indigo)... read this guide to get started with WCF - it is
the future of distributed computing on the Windows platform.

http://msdn.microsoft.com/msdnmag/is...n/default.aspx

Good luck!

Josh
http://www.thejoyofcode.com/

Feb 28 '06 #7

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

Similar topics

5
357
by: DraguVaso | last post by:
Hi, I need to write a VB.NET-application (Windows Forms) that may have a part of it (re-)implemented as a Webpage for the customers. I think it can be usefull to create a business Layer with...
3
1700
by: Lucas Tam | last post by:
Does anyone have a good articles that describes the pros and cons of Web Services vs. Remoting Hosted in IIS? Is there a reason to use either or? With Remoting Hosting in IIS, is it possible...
1
1457
by: SB | last post by:
Is it possible (or common practice) to have the business facade layer of the web services layer implemented as .net remoting component(s). While the web services provide the necssary access to...
13
1894
by: Ron L | last post by:
I am working on an application that is a front-end for a SQL database. While it is not an immediate requirement, the application will probably be required to be able to connect via the internet at...
11
4110
by: kiln | last post by:
I am starting a project that may be suitable for vb.net, using windows forms. I want a rich client, thus win forms vs web forms. Most users will access the app data over a LAN, but some will be...
8
1728
by: Raju Joseph | last post by:
Hi All, I am just trying to get an opinion here. I know this is always a tough choice to make. We are in the process of converting our VB6 based Healthcare Information System (a full-fledged...
0
755
by: Kirk | last post by:
I'm trying to use a Web Service to be a Remoting client of an existing ..NET 2.0 server. But I get the following error when I try to use System.Runtime.Remoting.Channels.Http in my WebService. ...
8
4240
by: sandy82 | last post by:
I coded a simple example in c# In which their is a client and a server using a dll . I am confused on the Point that u have to use the .dll on both sides .Cant we have a solution of having a dll...
1
1789
by: Tommaso Caldarola | last post by:
I need to transfer big files (up to 10 Gb), now I'm using IIS via Remoting with chunk of bytes (up to 500Kb). In the following article: Middle-Tier Hosting: Enterprise Services, IIS, DCOM, Web...
4
2110
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
What are the factors that I should consider in choosing .NET Remoting vs Web Services when an application will be deveoped using .net 2.0 and above? I think I need to consider at least the...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7084
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
7328
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
7458
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...
1
5013
isladogs
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...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
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...
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
380
bsmnconsultancy
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...

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.