Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于event的问题 #453

Open
wangliuliu-cc opened this issue Sep 21, 2023 · 0 comments
Open

关于event的问题 #453

wangliuliu-cc opened this issue Sep 21, 2023 · 0 comments

Comments

@wangliuliu-cc
Copy link

从一个命令(CMD) 到寻找到一个聚合 (DOMAIN)通过mapper操作数据库后, 到变成一个事件 (EVENT),这里有一个疑问。

在 示例代码中,每次操作完数据库后,都会抛出一个新的事件,也就是新的event。比如 新建指标,抛出的是 metricItemCreatedEvent,删除 抛出的是 metricItemDeleteEvent吗?
如果需要监控这一个聚下面的所有事件,是需要寻找出所有metricItem 相关的事件吗?如果后续新增了事件,监控的事件的也要同步新增?
是否可以定义一个 metricItemEvent ,增一个eventType,来区分是 创建还是删除?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant