简体   繁体   English

多桌面应用程序的最佳实践和体系结构?

[英]Best practices and architecture of an application multi desktop?

until now I have only been working on apps that uses their own database 直到现在,我一直只在使用自己的数据库的应用程序上工作

I have a question about best practices and architecture of the application I have to develope. 我有一个关于我必须开发的最佳实践和应用程序体系结构的问题。 Requirements are: - same office with multi (desktop) application instances on different machinces - single database would reside on one of those computers and all other machines would use it - let's say maximum of users (application instances) wouldn't exceed 10. 要求是:-在同一办公室中具有多个不同位置的多个(桌面)应用程序实例-单个数据库将驻留在其中一台计算机上,所有其他计算机都将使用它-假设最多用户(应用程序实例)不超过10。

1) I need your advices and guiding, also, is there an easy way to keep the data available to everyone In case the connection is lost, something like synching or distributed databases? 1)我还需要您的建议和指导,是否有一种简单的方法可以使每个人都可以使用数据,以防万一失去连接,例如同步数据库或分布式数据库?

2) do I need to install sqlserver on each machine? 2)我需要在每台机器上安装sqlserver吗?

Thanks in advance. 提前致谢。

A quick search on the internet for 3 tier architecture will give you a lot of information on the best practices for developing applications for multiple users. 在Internet上快速搜索3层体系结构将为您提供有关为多个用户开发应用程序的最佳实践的大量信息。 The following image should give you an idea of the 3 tier architecture . 下图应使您对三层体系结构有所了解。 If you have a very basic application then you could get away with a 2 tier application with the application on the desktops connecting directly to a single database server. 如果您有一个非常基本的应用程序,则可以使用2层应用程序,而台式机上的应用程序直接连接到单个数据库服务器。 But using the 3 tier model is the recommended and correct way to do this. 但是,建议使用3层模型来进行此操作,这是正确的方法。

A starting point would be an article like the one found here. 起点将是一篇类似此处的文章。 http://www.codeproject.com/Tips/662107/Understand-3-Tier-Architecture-in-Csharp http://www.codeproject.com/Tips/662107/Understand-3-Tier-Architecture-in-Csharp

Put the database on a shared server, and no - you do not need to install SQL Server on each machine. 将数据库放在共享服务器上,否-不需要在每台计算机上安装SQL Server。 Only the executable would be on each individual machine. 每台计算机上只有可执行文件。

Ensure users have access to the server. 确保用户有权访问服务器。

Using a 3-tier approach as the others have recommended can be a good and clean approach. 按照其他人的建议,使用3层方法可能是一种好方法。 You can read more about Layering and Tiering from here. 您可以从此处阅读有关分层和分层的更多信息。

Layered Architecture: Introduction http://serena-yeoh.blogspot.com/2013/06/layered-architecture-for-net.html 分层架构:简介http://serena-yeoh.blogspot.com/2013/06/layered-architecture-for-net.html

Layered Architecture: Deployment Strategies http://serena-yeoh.blogspot.com/2013/07/layered-applications-3-tier.html 分层架构:部署策略http://serena-yeoh.blogspot.com/2013/07/layered-applications-3-tier.html

You can also get samples from here http://layersample.codeplex.com/ 您也可以从此处http://layersample.codeplex.com/获得样本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 多层架构中的异常处理最佳实践 - Exception handling best practices in multi-tier architecture 可测试iframe应用程序的体系结构 - 使用Facebook C#SDK的最佳实践 - Architecture for testable iframe application - Best practices with Facebook C# SDK 在桌面和Web应用程序之间交换数据的最佳实践 - Best Practices for Exchanging data between Desktop and Web Application 应用程序配置最佳实践 - Application configuration best practices Web API分层体系结构-最佳实践 - Web API tiered architecture - best practices 在单元测试/开发人员中以及在桌面应用程序中使用的其他ConnectionString的最佳做法 - Best practices for using a different ConnectionString in unit test / dev and live in desktop application 将桌面应用程序转换为多用户桌面应用程序 - converting desktop application to multi user desktop application 应用程序设置结合最佳实践 - Application settings binding best practices 分层体系结构中的实体框架-要遵循的最佳实践? - Entity Framework in a n tiered architecture - Best Practices to follow? 从零开始的模型视图控制器架构最佳实践 - model-view-controller architecture best practices from scratch
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM