lagom框架中的事件标签是什么?

What is an Event Tag in lagom framework?

来自文档:https://www.lagomframework.com/documentation/1.5.x/scala/ReadSide.html

它说:

Event tags
In order to consume events from a read-side, the events need to be tagged. All events with a particular tag can be consumed as a sequential, ordered stream of events. Events can be tagged by making them implement the AggregateEvent interface. The tag is defined using the aggregateTag method.

Q1。当它说消费为顺序的、有序的事件流时,它是什么意思?
Q2。为什么在有偏移时标记事件?

A1。读取端将按照写入端持久化的顺序查看实体的事件。

A2。使用标记以便不同的读取端可以仅订阅特定事件。