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

KV API #83

Closed
thedodd opened this issue Sep 7, 2021 · 1 comment
Closed

KV API #83

thedodd opened this issue Sep 7, 2021 · 1 comment
Labels
T-needs-design Needs additional design work

Comments

@thedodd
Copy link
Collaborator

thedodd commented Sep 7, 2021

Under the hood, Hadron is built upon a robust KV embedded database. Let's explore some use cases where some level of access to the KV store — outside of the normal streaming interface — may be good and desirable.

OptAttr Controls

There will be plenty of cases where users will want to directly query/mutate the data of a stream or pipeline. Generally this violates the intention behind the design of the system. However there are still cases where some amount of access might be nice without breaking these constraints.

  • During development, or when a bug has been rolled to a production environment, producers may be emitting malformed data, and the consumers will never be able to reasonably be able to process the task.
  • In such cases, the data may be malformed enough that rolling some new code to parse it would be unreasonable.
  • How might a user get past this issue?

Perhaps a reasonable path forward is to allow for optattr updates on events.

  • For the case above, the event could be updated to include some new attribute on the event.
  • Consumers could be coded to skip / ack events with such attributes.
  • Similar to a dead-letter system.

Explore this a bit more. Perhaps we need something like an "official" Hadron CloudEvents extension field for marking events as dead-letter.

@thedodd thedodd added the T-needs-design Needs additional design work label Sep 7, 2021
@thedodd
Copy link
Collaborator Author

thedodd commented Oct 29, 2021

Closing in favor of #100

@thedodd thedodd closed this as completed Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-needs-design Needs additional design work
Projects
None yet
Development

No branches or pull requests

1 participant