Skip to content

[Feature] Support TTL on Short Term Memory #580

@avx-wlauer

Description

@avx-wlauer

Search before asking

  • I searched in the issues and found nothing similar.

Description

Support controlling TTL on Short Term memory.

Short term memory is backed by Flink's standard MapState facility. Unlike Sensory memory, Short term memory is supposed to last beyond the current call and be available for future operations on the key. The current implementaiton doesn't specify a TTL on the MapState that underlies the short term memory, but in order to control the size of retained state for a long running pipeline, specifying this is important. A new API should be added that allows specifying a StateTtlConfig for the memory, which would get passed down and used when creating the underlying MapState.

Sensory memory doesn't need this facility, as it isn't supposed to last beyond the current call. And Long term memory is handled differently. It also likely needs a way to specify TTL, but the mechanism should be completely different due to the architecture.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

Labels

feature[Issue Type] New features or improvements to existing features.priority/majorDefault priority of the PR or issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions