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
feat(metadata service): Introducing Platform Events #4477
Merged
jjoyce0510
merged 18 commits into
datahub-project:master
from
jjoyce0510:platform-event
Mar 30, 2022
Merged
feat(metadata service): Introducing Platform Events #4477
jjoyce0510
merged 18 commits into
datahub-project:master
from
jjoyce0510:platform-event
Mar 30, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
entity-registry/src/main/java/com/linkedin/metadata/models/DefaultEventSpec.java
Show resolved
Hide resolved
entity-registry/src/main/java/com/linkedin/metadata/models/registry/config/Event.java
Outdated
Show resolved
Hide resolved
entity-registry/src/main/java/com/linkedin/metadata/models/registry/config/Event.java
Show resolved
Hide resolved
dexter-mh-lee
approved these changes
Mar 29, 2022
maggiehays
pushed a commit
to maggiehays/datahub
that referenced
this pull request
Aug 1, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a new concept into the Metadata Service (GMS) of Platform Event. A Platform Event is a custom type of business (e.g. semantic) event that can be registered via the entity-registry. Platform Events are effectively platform-internal kafka events that can be emitted using the "producePlatformEvent" API of an EntityClient. When producing an event, its "name" and "payload" must be provided.
In contrast to MCP + MCL events, Platform Events do not imply any storage other than the event queue (e.g. Kafka). Platform Events are not automatically written to elastic or MySQL. Instead, it is assumed that they will be consumed from internal or external consumers of the Platform Event message stream.
Following a similar precedent to how aspects are serialized in generic fashion, Platform Events are serialized using the concept of GenericPayload inside of an envelope record called PlatformEvent, meaning that we can add and produce arbitrary platform events on a single topic (PlatformEvent_v1) without a schema registry change.
Changes
In coming PRs, we will add a few sample PlatformEvents which will more fully demonstrate their power!
Checklist