Skip to content

Scope of "sequence" extension #1364

@duglin

Description

@duglin

The CE sequence extension:

... defines an attribute that can be included within a CloudEvent to describe the position of an event in the ordered sequence of events produced by a unique event source.

Notice the phrase "unique event source".

It also says:

Produces and consumers are free to define an out-of-band agreement on the semantic meaning, or valid values, for the attribute.

Which provides a lot of freedom for how this extension can be used.

Does the first quote imply that each sequence is scoped to the source attribute? Meaning source+sequence MUST be unique and the sequence comparisons are limited to matching source values? Or, in terms of a concrete example, does the 2nd quote above allow for implementations to compare (order) sequence values even when the source values differ? E.g. across all events received by a consumer, as long as the out-of-band agreement specifies such a rule.

If we really intended for sequence to be scoped by source then we should probably be more explicit about it in the spec.

@deissnerk let me know if I misrepresented your questions.

/cc @jskeet

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions