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

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

问题描述

我想使用.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. 成功验证后,客户端应用程序将直接访问网络服务,因此服务器上不会出现过载。

想要你的反馈,这是否是一个好的方法来实现或有一个更好的方法?我应该使用Windows服务而不是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.

回答

Irfan

推荐答案

请为所有客户端/服务器通信使用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天全站免登陆