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

Internal key/value store to allow commands to maintain state #128

Open
clockworksoul opened this issue Oct 17, 2021 · 0 comments
Open

Internal key/value store to allow commands to maintain state #128

clockworksoul opened this issue Oct 17, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@clockworksoul
Copy link
Member

Currently every command is completely stateless, which is fine most of the time, but occasionally a command may want to store a bit of data to access later, or for another command in the same bundle to access.

  • Theoretically similar to Cog’s memory service.
  • Methods to write to:
    • Simple mode: metadata tags in the output?
    • Advanced JSON mode: special properties in the JSON
  • Methods to read from:
    • Integration with dynamic configuration
    • SDK (Another reason to have an SDK?)
  • To read/write must specify:
    • Scope:
      • Global (don’t support for now -- security concerns?)
      • Command execution
      • User
      • Bundle
    • Lifetime/TTL:
      • Maximum: one day? 30 day?
  • Implementations
    • Entirely in-memory (super simple, probably fine for most use cases)
    • Backed by something like Redis (more complex, more robust)
@clockworksoul clockworksoul added the enhancement New feature or request label Oct 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant