Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add config options to limit number of stored events and actions #2

Open
bw-hro opened this issue Aug 11, 2023 · 0 comments · May be fixed by #11
Open

Add config options to limit number of stored events and actions #2

bw-hro opened this issue Aug 11, 2023 · 0 comments · May be fixed by #11
Assignees
Labels
enhancement New feature or request

Comments

@bw-hro
Copy link
Owner

bw-hro commented Aug 11, 2023

At the moment all emitted events as well as requested actions will be saved in memory. For long running applications with limited resources this could become a problem.

Possible attempts:

  • limit number of actions/events that will be stored.
  • limit duration how long to keep objects in memory (e.g. 1hour, 1day, 1week, ...)
  • limit memory used e.g. 256MB

when limit is reached

  • Oldest element will be removed to store new one. (like rolling appenders known from logging)
  • removed objects could be persisted as backup. e.g. in a text file, sqlite db, ...
@bw-hro bw-hro added the enhancement New feature or request label Aug 11, 2023
@bw-hro bw-hro self-assigned this Aug 11, 2023
@bw-hro bw-hro linked a pull request Nov 11, 2024 that will close this issue
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant