数据存储asp.net的最佳实践 [英] Best practice for data storage asp.net

查看:59
本文介绍了数据存储asp.net的最佳实践的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP.NET应用程序,我想知道坐在一些数据的最佳做法是什么。我有3个场景,下面描述了我正在做的事情:



-应用程序设置当前存储为正在读取的Xml序列化对象session_start上的文件和反序列化



- 用户级别设置以与管理员设置相同的方式存储和访问,除非可以通过表格修改



- 用户的用户名当前通过身份验证页面上的活动目录检索



每个数据都是从不同的部分访问的发布进程内会话存储的Web应用程序。我将很快将设置变量序列化,以允许进程外存储站点的可扩展性。



如果有人可以推荐任何有关该主题的额外阅读,我'我也很欣赏。谢谢!

I've got an ASP.NET application, and I'm wondering what the best practice is for sitting some data. I've got 3 scenarios, described below along with what I'm currently doing:

-Application settings Currently being stored as an Xml-serialized object that's being read from a file and deserialized on session_start

-User level settings Stored and accessed the same way as the admin settings, except this is modifiable via a form

-The user's username Currently being retrieved via active directory on an authentication page

Each piece of data is being accessed from different sections of the web app issuing in-proc session storage. I'll shortly be making the settings variables serializable to allow out-of-proc storage site scalability.

If anyone could recommend any extra reading on the subject, I'd appreciate that, too. Thanks!

推荐答案





这取决于你要节省的信息量,缓存要求,备份要求等。但是你可能已经想到了很少的考虑因素:

- 在我看来,你为用户使用AD的事实是好的,所以即使你整合其他存储我也不会改变它。 />
- 如果你打算在将来某个时候开始保存更多信息,我建议使用SQL或NO-SQL数据库。

- 如果你认为你可能需要在不同的服务器上使用多个Web服务器,在我看来,使用数据库可以更容易地处理不同类型的并发相关问题。

- 无论存储机制如何,请记住包含它在你的备份策略中以适当的方式。
Hi,

This depends on the amount of information you're going to save, caching requirements, backup requirements and so on. But few considerations you already may have thought:
- In my opinion, the fact that you're using AD for users is good so I wouldn't change that even if you consolidate other storage.
- If you plan to start saving more information at some point in the future, I'd suggest using a database, either SQL or NO-SQL.
- If you think you could need to use several web servers on different servers, in my opinion by using a database it would be easier to handle different kinds of concurrency related issues.
- Regardless of the storage mechanism, remember to include it in your backup strategy in a proper manor.


这篇关于数据存储asp.net的最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆