I am still learning .NET framework and I want to implement multi-tier application just for practice. 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 t开发者_如何学Gohreads 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?
Microsoft provides quite a bit of guidance for application architecture using the .NET platform.
I can recommend the Microsoft Architecture resources available here: MSDN Architecture
Also, the 2nd edition of the Microsoft Application Architecture Guide is available here as a PDF: MS AAG 2nd Edition
I think that your best option would be to write a WCF service application.
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.
精彩评论