Solved

3 Tier Winform Application

Posted on 2008-06-18
5
1,949 Views
Last Modified: 2012-05-05
Hi,
I have a winform application that is using a webservice to communicate to the database.I made a architecture diagram as follows
   UserInterface Tier                    Middle Tier                            Database tier
         
     UI ---------------------> Webservice -->Dataaccess ---------->Database
                                                                  Components
Does this approach make any sense?Can any one comment on this?
Thanks
0
Comment
Question by:aspnetdev
  • 2
  • 2
5 Comments
 
LVL 7

Expert Comment

by:Zippit
Comment Utility
if you need to access your business objects across the internet then this is exactly how to do it.  If this is purely in a LAN environment the the webservice will introduce some overhead to the messaging with your business objects.  If performance is very important you may want to move to remoting (using tcp/binary channel/formatter) or possibly COM+ (Enterprise services) and interop.
0
 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
I agree with Zippit, webservices can be overkill in most situation where you don't have to go over the web.

You may use a very similar architecture (and yet be opened to the web) by using WCF. See http://netfx3.com/content/WCFHome.aspx
0
 

Author Comment

by:aspnetdev
Comment Utility
thanks, for the comments but i would like to know will my webservice come under the business layer and UI in the GUI layer?
0
 
LVL 69

Expert Comment

by:Éric Moreau
Comment Utility
If you are speaking only of (logical) layers, we normally limit the number of 3. Data-Business-Presentation. A Web service is clearly in the Business layer because it does not handle controls (at least should not).
0
 
LVL 7

Accepted Solution

by:
Zippit earned 250 total points
Comment Utility
What do you mean by "will my webservice come under the business layer"?  Are you asking about where it should be physically deployed?  Or are you asking from a logical standpoint?

If you mean logically, then emoreau is correct.

if you are speaking physically then it obviously resides on your webserver.  The client/presentation layer could reside on the same webserver (if it's a web-client) or another webserver.  

Your data-access components (assuming they are separate assemblies from the webservices) will either have to live on the webserver with the webservices, or you will have to use a technique like remoting, enterprise services or WCF to run them on a separate server from the webservices but still be accessible from the webservices.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now