Solved

3 Tier Winform Application

Posted on 2008-06-18
5
1,968 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 7

Expert Comment

by:Zippit
ID: 21817327
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 70

Expert Comment

by:Éric Moreau
ID: 21818124
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
ID: 21819017
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 70

Expert Comment

by:Éric Moreau
ID: 21820626
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
ID: 21824505
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

749 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