473,396 Members | 1,966 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,396 software developers and data experts.

Using remoting in an n-tier application

Hi,

Can anyone point me in the right direction for an example on how to
use remoting to separate my BLL and DAL onto different tiers? Is there
a best-practice pattern or design model for this?

Regards,

Chris

Apr 17 '07 #1
7 1882
Chris,

I have two questions. First, what is the impetus to use remoting? Why
do you feel you have to have the layers on two different machines? Just
because you have a logical boundary between these two tiers, doesn't mean
you have to have a process or machine boundary between the two of them.
Doing this unecessarily will hamper performance.

Second, why aren't you looking at Windows Communications Foundation
(WCF)?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<ha******@hotmail.comwrote in message
news:11*********************@n59g2000hsh.googlegro ups.com...
Hi,

Can anyone point me in the right direction for an example on how to
use remoting to separate my BLL and DAL onto different tiers? Is there
a best-practice pattern or design model for this?

Regards,

Chris

Apr 17 '07 #2
HI Nicholas,

Unfortunately, I won't have continuous access to the server where the
db resides. I know there will be a slight performance hit, but
everything is within our LAN so I'm not terribly concerned.

I haven't heard of WCF (I'm still finding my way with .NET). It's .NET
3.0? That's a non-starter for me, I work in government where
everything moves slowly and we won't be moving off .NET 2.0 for a
while yet...

C.

On Apr 17, 11:41 am, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
Chris,

I have two questions. First, what is the impetus to use remoting? Why
do you feel you have to have the layers on two different machines? Just
because you have a logical boundary between these two tiers, doesn't mean
you have to have a process or machine boundary between the two of them.
Doing this unecessarily will hamper performance.

Second, why aren't you looking at Windows Communications Foundation
(WCF)?

--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com

<hardi...@hotmail.comwrote in message

news:11*********************@n59g2000hsh.googlegro ups.com...
Hi,
Can anyone point me in the right direction for an example on how to
use remoting to separate my BLL and DAL onto different tiers? Is there
a best-practice pattern or design model for this?
Regards,
Chris

Apr 17 '07 #3
C.,

Yes, WCF is .NET 3.0.

As for not having access to the server where the db resides, this
doesn't mean that you have to have your data layer residing on the server.
If all you are going to do on that machine is access the database, then I
would say to put your data layer on the same machine as your business layer,
something that you will have more continuous access to.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<ha******@hotmail.comwrote in message
news:11*********************@p77g2000hsh.googlegro ups.com...
HI Nicholas,

Unfortunately, I won't have continuous access to the server where the
db resides. I know there will be a slight performance hit, but
everything is within our LAN so I'm not terribly concerned.

I haven't heard of WCF (I'm still finding my way with .NET). It's .NET
3.0? That's a non-starter for me, I work in government where
everything moves slowly and we won't be moving off .NET 2.0 for a
while yet...

C.

On Apr 17, 11:41 am, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guard.caspershouse.comwrote:
>Chris,

I have two questions. First, what is the impetus to use remoting?
Why
do you feel you have to have the layers on two different machines? Just
because you have a logical boundary between these two tiers, doesn't mean
you have to have a process or machine boundary between the two of them.
Doing this unecessarily will hamper performance.

Second, why aren't you looking at Windows Communications Foundation
(WCF)?

--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com

<hardi...@hotmail.comwrote in message

news:11*********************@n59g2000hsh.googlegr oups.com...
Hi,
Can anyone point me in the right direction for an example on how to
use remoting to separate my BLL and DAL onto different tiers? Is there
a best-practice pattern or design model for this?
Regards,
Chris


Apr 17 '07 #4
Nicholas Paldino [.NET/C# MVP] wrote:
Chris,

I have two questions. First, what is the impetus to use remoting? Why
do you feel you have to have the layers on two different machines? Just
because you have a logical boundary between these two tiers, doesn't mean
you have to have a process or machine boundary between the two of them.
Doing this unecessarily will hamper performance.

Second, why aren't you looking at Windows Communications Foundation
(WCF)?

What makes WCF that much more compelling than remoting? I don't know
anything more about it than the name.

I have started a similar project and used remoting. WCF didn't exist
when i started.

dan
Apr 17 '07 #5
On Apr 17, 11:32 am, hardi...@hotmail.com wrote:
Can anyone point me in the right direction for an example on how to
use remoting to separate my BLL and DAL onto different tiers? Is there
a best-practice pattern or design model for this?
There's a great book by Rockford Lhotka that covers this topic. Look
for Expert C# 2005 Business Objects. He walks through building a real
framework that handles the tier transitions for you (He calls it
Csla).

I'm using his framework now, and there's simply no going back for me.

Andy

Apr 17 '07 #6
Dan,

Remoting does NOT do the following out of the box (all of which WCF
supports or has more options than remoting):

- Authentication/authorization.
- Only three channels with fixed formats for those channels (tcp, http,
pipes) (WCF supports MSMQ out of the box as well and the format of messages
on channels is extremely extensible)
- Supports only two encodings (binary and soap) (WCF supports soap, POX,
binary encoding and can be extended for almost any wire format)
- Transactions
- Dials for scaling (throttling, message size, etc, etc)

Oh, yeah, you have to share assemblies with callers as well with
remoting, and thats a HUGE PITA.

The list goes on, the big one for most people is the first one, lack of
authentication/authorization support. It just isn't there in remoting.

Also, with WCF, the model allows you to switch easily between bindings
and transports, assuming that your service semantics don't change. So if
you had an internal app which used a TCP transport and binary encoding, it's
not going to take much to move it to a web service (using the Basic Web
Services profile, or something more, and assuming you wrote your service as
stateless to begin with).

Finally, the number of extensibility points, for almost every single
aspect of the WCF stack (security, transport, message
inspection/transformation, encoding, the ability to inject services into the
stack) blows remoting out of the water.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Dan Holmes" <da*******@bigfoot.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Nicholas Paldino [.NET/C# MVP] wrote:
>Chris,

I have two questions. First, what is the impetus to use remoting?
Why do you feel you have to have the layers on two different machines?
Just because you have a logical boundary between these two tiers, doesn't
mean you have to have a process or machine boundary between the two of
them. Doing this unecessarily will hamper performance.

Second, why aren't you looking at Windows Communications Foundation
(WCF)?

What makes WCF that much more compelling than remoting? I don't know
anything more about it than the name.

I have started a similar project and used remoting. WCF didn't exist when
i started.

dan

Apr 17 '07 #7
Nicholas Paldino [.NET/C# MVP] wrote:
Dan,

Remoting does NOT do the following out of the box (all of which WCF
supports or has more options than remoting):
Is there a webcast or getting started guide on this? Is is difficult to
change from remoting to WCF?

What/Where is a good place to start?

dan
Apr 18 '07 #8

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

Similar topics

0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS...
5
by: mayamorning123 | last post by:
A comparison among six VSS remote tools including SourceOffSite , SourceAnyWhere, VSS Connect, SourceXT, VSS Remoting, VSS.NET To view the full article, please visit...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed...
2
by: Ahmet AKGUN | last post by:
Hi; I am trying to make a server that handles db connection pool. Clients use TcpChannel to make a call to this server and get one database connection (OleDbConnection) from pool. But when I...
2
by: Sharon | last post by:
I have a Form class that can be open by parent Form or by .NET Remoting command. When the parent Form opens the Form - All fine ! But when the .NET Remoting command is trying to Show the Form, the...
4
by: marcelino | last post by:
Hi, I have c# express beta I try to write the following using clause: System.Runtime.Remoting.Channels.Http; because I want to create a http channel. HttpChannel aJobChannel = new...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool This article makes a detailed comparison among SourceAnyWhere, SourceOffSite, VSS...
9
by: swartzbill2000 | last post by:
Hello, I am trying to build and run the Remoting Sample from MSDN. Everything compiles. The Listener appears to run. The Client throws this RemotingException: A first chance exception of type...
1
by: =?Utf-8?B?TUJ1cnNpbGw=?= | last post by:
This works without any problems: Code Snippet string uri = "tcp://localhost:8000/CAOFactory"; cf = (CustomerInterfaces.ICAOFactory)Activator.GetObject(typeof(CustomerInterfaces.ICAOFactory),...
0
by: Kristian Reukauff | last post by:
Hi I have a problem with the .Net-Securty-Functions. I've got a client and a server. When I try to register a channel at the server with this line: ChannelServices.RegisterChannel(chan, false);...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.