开发者

ASP.NET: Load balancing copying and moving files and folders located in network share

开发者 https://www.devze.com 2022-12-08 05:26 出处:网络
I would like to know how to implement CRUD operations on common files and folders. My web site requires load balancing.The web site node开发者_如何学编程s need to CRUD files and folders in a common ne

I would like to know how to implement CRUD operations on common files and folders. My web site requires load balancing. The web site node开发者_如何学编程s need to CRUD files and folders in a common network location. Note: At the moment, I am dealing with file changes by locking the file in exclusive mode when writing and shared read when reading, if there are better alternatives (A separate lock file is a no-go as there are far too many files) I would like to know. Folders still work in progress


This link has a solution for a file-lock implemented using a separate file that allows for recovery from bad situations (like one server never releasing the lock)

http://mvolo.com/blogs/serverside...

Be sure to read the comments as the non-UTC implementation provided isn't ideal.

0

精彩评论

暂无评论...
验证码 换一张
取 消