Interactions should have a 90 day TTL (a daily/hourly retention policy is sufficient)
All interactions from one supplier should be possible to delete
Other systems should be able to load ranges of interactions based on supplier and a timestamp range
The task can be solved using either relational- or graph database. In both cases there is a trade off between read and write
pub/sub
Pre
Process
DB
Supplier
Interaction
-Timestamp
Using uniqueness constraints on supplier Id and Interaction Id, as well as index on timestamp ensures fast lookup.
Allows to only look through interactions connected to a specific supplier
Hour
Date
Allows fast delete of old records
Probably unnecessary as timestamp is indexed
By jmmodin