Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Need to track age of flight contact events and remove after expiration #1

Open
autodidaddict opened this issue Sep 30, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@autodidaddict
Copy link
Member

The event sourcing system needs to keep track of when each contact event delivered from the provider occurred so that the cached state contains a value indicating how old that particular flight record is. After a flight (tracked via icao_address key) hasn't been heard from after some configurable value, like 5 minutes, the flight should be removed from the materialized state view.

To do the demo today, you need to run flushdb on the Redis database before running it because the system just accumulates more and more flights without ever reducing the list.

@autodidaddict autodidaddict added enhancement New feature or request good first issue Good for newcomers labels Sep 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant