FIWARE Orion 和用户数据管理与 mysql 数据库

FIWARE Orion and user data management vs mysql database

我被要求创建一个后端服务器来存储和管理用户信息数据,特别是使用 Orion Context Broker。 Orion 如何帮助我避免使用自己的数据库(例如本地 sql)?我是 FIWARE Orion 的新手,据我在手册中读到的,我可以创建实体和与它们相关联的属性,这在使用节点类实体(例如传感器)时令人惊奇。但是,如果必须具有这样的父子实体关系,我该如何存储有关许多经过身份验证的用户的信息: user 1 -> car 1 -> cylinder 1 -> tempCyl.. 我可以只用一个请求引用 "tempCyl" 吗?或者是否强制链接请求(例如将属性子 "tempCyl" 设置为 "cylinder 1" 反之亦然?

此外,如果在 "user 1" 实体下,信息是敏感的,有没有办法使用有效令牌(例如 OAuth)保护数据?还是我必须创建自己的内部(无法访问互联网)Orion 实例?

在 Orion 实现的实体属性模型(例如 A 和 B 实体之间的关系)中建立关系的更简单方法是使用实​​体 A 中的某些属性指向实体 B,例如A.rel = B。如果你需要双向关系,那么也使用B中的一些属性来指向A。

关于敏感信息,Orion 实施了 multitenancy mechanism that allowa to partition different set of context information using the same Orion instance. Isolation is done in per-DB basic and can be combined with the FIWARE security framework so only the users beloning to a tenant can access information in that tenant but not the others (have a look to the Orion's PEP documentation)。