如何在我的场景中设计可扩展且安全的数据结构?

发布于 2024-07-23 03:58:38 字数 450 浏览 2 评论 0原文

我正在开发一个网站,我需要构建一个数据结构来存储用户个人资料信息。 就像我们填写的性别/年龄/教育程度/等信息一样。 我目前遇到的问题是如何设计一个可扩展且安全的 数据结构,更详细地说,

  1. 目前我可能没有考虑当前设计/开发阶段所需的所有用户配置文件信息,如何设计一个可扩展的框架以便将来我可以轻松扩展用户配置文件? 有没有成熟的(开源)用户画像框架可以参考? 目前,我将每个属性存储到数据库列中,每次我需要根据需求添加新属性时,我都需要添加列 - 不太方便。

  2. 如何安全地共享不同应用程序的用户个人资料信息? 例如,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,

  1. 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.

  2. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

浮光之海 2024-07-30 03:58:38

正如我在其他答案中指出的,问题的解决方案是:应用软件工程。 这就是我们所做的——没有简单的解决方案(例如使用框架 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文