讨论 - 客户端服务器应用程序的体系结构 [英] Discussion - Client Server Application architecture

查看:181
本文介绍了讨论 - 客户端服务器应用程序的体系结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发使用.NET 4中的客户机 - 服务器的桌面应用程序,C#和SQL Server。

I want to develop a client-server based desktop application using .Net 4, C# and SQL Server.

请参考图片什么,我想。

Please refer to the image for what i am thinking about.

将有访问Windows服务或Web服务的服务器应用程序。客户端应用程序将具有多文档界面。

There will be a server application accessing windows service or web service. The client application will have Multiple Document Interface.

下面是我的观点是什么,我想 -

Below are my points that what i am thinking about -

  1. 在客户端应用程序将使用套接字连接与服务器应用程序,以便从服务器进行身份验证,同时也为跟踪客户端连接的记录在服务器上。
  2. 这项服务将Web服务
  3. 成功认证的客户端应用程序直接访问网络服务,因此会出现在服务器上没有超载后。

我想你对这种反馈是否是实现一个很好的方式,或是否有更好的办法?我应该使用Web服务的窗口服务,而不是?我应该使用直接使用Web服务接口连接所有的数据通信呢?

I want your feedback on this whether it is a good way to implement or is there a better way? Should i use windows service instead of web service? Should i use socket connectivity for all data communication instead of directly consuming the web service?

感谢您分享你的时间和智慧。

Thank you for sharing your time and wisdom.

问候

伊尔凡

推荐答案

绝对可以使用Web服务界面为所有客户端/服务器通信。

Most definitely use a web service boundary for all your client/server communications.

WCF 会做你想要的一切。您可以暴露多个端点与不同绑定的,甚至的自定义他们使用什么样的安全

WCF will do everything you want. You can expose multiple endpoints with different bindings, and even customize what kind of security they use.

花一些时间挖成 WCF文档,我想你会发现它非常适合于你的架构图,和你需要的一切将是即开即装即用的。

Spend some time digging into the WCF documentation and I think you will find it is perfectly suited to your architecture diagram, and everything you need will be out-of-the-box.

这篇关于讨论 - 客户端服务器应用程序的体系结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆