如何在我的场景中设计可扩展且安全的数据结构?
我正在开发一个网站,我需要构建一个数据结构来存储用户个人资料信息。 就像我们填写的性别/年龄/教育程度/等信息一样。 我目前遇到的问题是如何设计一个可扩展且安全的 数据结构,更详细地说,
目前我可能没有考虑当前设计/开发阶段所需的所有用户配置文件信息,如何设计一个可扩展的框架以便将来我可以轻松扩展用户配置文件? 有没有成熟的(开源)用户画像框架可以参考? 目前,我将每个属性存储到数据库列中,每次我需要根据需求添加新属性时,我都需要添加列 - 不太方便。
如何安全地共享不同应用程序的用户个人资料信息? 例如,app1只需要用户配置文件的一部分,出于安全原因,我只需要向app1公开用户配置文件的一部分。 但我们需要使其足够灵活,以便当 app1 需要额外的用户配置文件项时,我们可以轻松公开更多。
C# 或中性编程语言的解决方案受到赞赏。
I am developing a web site and I need to build a data structure to store user profile information. Just like what we filled about our gender/age/education/etc. information for Facebook, etc. The current issue I met with is how to design an extensible and secure
data structure, in more details,
Currently I may not consider all required user profile information from current design/development phase, how to design a extensible framework so that in the future I could extend user profile esaily? Are there any mature (open source) user profile framework to reference? Currently I store each property into a database column, and each time I need a new property from requirement, I need to add column-- not very convenient.
How to make it secure to share user profile information for different applications? For example, app1 just need a part of user profile, and for security reason I only need to expose a part of user profile to app1. But we need to make it flexible enough so that when app1 needs additional user profile items, we could easily expose more.
Solution in C# or in programming language neutral are appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如我在其他答案中指出的,问题的解决方案是:应用软件工程。 这就是我们所做的——没有简单的解决方案(例如使用框架 x 或库 y)对于这样一个广泛的问题。
As I indicated in my other answer, the solution to your problem is: apply software engineering. This is what we do--there's no simple solution (e.g. use framework x or library y) to a broad question like this.