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

Message meta-data #161

Closed
alexec opened this issue Jul 28, 2021 · 0 comments · Fixed by #314
Closed

Message meta-data #161

alexec opened this issue Jul 28, 2021 · 0 comments · Fixed by #314
Assignees
Milestone

Comments

@alexec
Copy link
Contributor

alexec commented Jul 28, 2021

Currently messages are just byte-arrays. This the lowest common-denominator, but means that dataflow can't infer useful information about messages.

Use case for meta-data include:

  • Tracing messages through the system to diagnose problem
  • Message de-duplication
  • Grouping by time
  • Verifying messages

What sources already provide:

  • HTTP:
    • Etag
    • Content-length
  • Kafka:
    • Timestamp
    • Topic
    • Partition
    • Offset
  • S3:
    • Etag
    • Last-modified time
    • Size
    • Owner
  • STAN:
    • Sequence
    • Timestamp
    • Redelivery
    • Subject

Cloud-events provides a formal specification:

  • ID (UUID)
  • Source (URI)
  • Type
  • Data-content-type
  • Dataschema
  • Subject
  • Time
{
    "specversion" : "1.0",
    "type" : "com.github.pull_request.opened",
    "source" : "https://github.com/cloudevents/spec/pull",
    "subject" : "123",
    "id" : "A234-1234-1234",
    "time" : "2018-04-05T17:31:00Z",
    "comexampleextension1" : "value",
    "comexampleothervalue" : 5,
    "datacontenttype" : "text/xml",
    "data" : "<much wow=\"xml\"/>"
}
@alexec alexec changed the title message meta-data Message meta-data Jul 30, 2021
@alexec alexec added this to the v0.1 milestone Aug 2, 2021
@alexec alexec self-assigned this Sep 10, 2021
alexec added a commit that referenced this issue Sep 10, 2021
alexec added a commit that referenced this issue Sep 15, 2021
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

Successfully merging a pull request may close this issue.

1 participant