简体   繁体   English

.NET中的多层应用程序

[英]Multi-Tier Application in .NET

I am still learning .NET framework and I want to implement multi-tier application just for practice. 我还在学习.NET框架,我想实现多层应用程序。 My goal is to make application for hospitals. 我的目标是申请医院。

Question: Is it good idea to implement multi-threaded server that accepts client requests via sockets -- Worker threads that deal with client requests and then route requests to data access layer? 问题:实现通过套接字接受客户端请求的多线程服务器是否是个好主意 - 工作线程处理客户端请求然后将请求路由到数据访问层?

This would be decent practice for thread management, but is this right way for my application? 这对于线程管理来说是不错的做法,但对我的应用程序来说这是正确的方法吗? Is there any other solution to achieve this goal? 有没有其他解决方案来实现这一目标?

I'm thinking of implementing the multi-threaded server in java and client in .net? 我正在考虑在.net中实现java和客户端中的多线程服务器?

Microsoft provides quite a bit of guidance for application architecture using the .NET platform. Microsoft为使用.NET平台的应用程序架构提供了相当多的指导。

I can recommend the Microsoft Architecture resources available here: MSDN Architecture 我可以推荐这里提供的Microsoft Architecture资源: MSDN Architecture

Also, the 2nd edition of the Microsoft Application Architecture Guide is available here as a PDF: MS AAG 2nd Edition 此外,第二版Microsoft应用程序体系结构指南在此处以PDF格式提供: MS AAG第2版

I think that your best option would be to write a WCF service application. 我认为您最好的选择是编写WCF服务应用程序。

That is hosted in IIS, which does all of the connection and threading things for you, well mostly - you still have to write thread safe code. 它托管在IIS中,它为您完成所有连接和线程处理,主要是 - 您仍然必须编写线程安全代码。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM