← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 1980.z.4.a

事件键与实体状态

理解等级:中级

事件的键用于身份或分区,值描述发生的事实。实体事件以实体ID为键,值给出当时的对象状态,通常最后一条足以代表当前状态;有键行为事件可能只是一次交互,需要聚合多条才得到统计。无键事件则独立陈述一次发生。是否含键不能决定是否为实体,须依据业务语义判断。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Event-Driven Microservice Fundamentals · 查看原书依据

      An entity is a unique thing and is keyed on the unique ID of that thing. The entity event describes the properties and state of an entity—most commonly an object in the business context—at a given point in time. For a book publisher, an example could be a book entity, keyed on ISBN. The value field contains all the necessary information related to the unique entity. Key

    参考来源

    - 位置:《Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)》第02章《Event-Driven Microservice Fundamentals》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Building Event-Driven Microservices Leveraging Organizational Data at Scale (Adam Bellemare)/_epub-src/OEBPS/ch02.xhtml;规范化段落起句:An entity is a unique thing) - 结论依据:原文对该对象的定义、运行说明或对比支持以下归纳:事件的键用于身份或分区,值描述发生的事实。本卡同时保留其适用条件与失败边界。 - 原始内容:An entity is a unique thing and is keyed on the unique ID of that thing. The entity event describes the properties and state of an entity—most commonly an object in the business context—at a given point in time. For a book publisher, an example could be a book entity, keyed on ISBN. The value field contains all the necessary information related to the unique entity. Key