Does anyone have any good strategies for how they ...
# general
b
Does anyone have any good strategies for how they automatically toggle data from real-time to offline?
b
One of the challenges we have is we have up-sert enabled. How would you recommend we handle that?
r
upsert is only supported for real-time tables
Why are you looking to move from real-time to offline?
b
We are consuming real-time feeds from our operations which we want to then archive automatically after 30 days
our goal is to do a rolling 18 month of analytics
in that world, any data we consume should 'auto archive' so we can do same time last month / last quarter / last year analysis
m
How late can a record be upserted? If it is beyond the 30 days, then it breaks the upsert invariant of having all records of a PK on a single server
b
data cannot be upserted beyond 21 days
Our goal is to automatically archive data every day as it 'ages-out'
m
In that case it might work, as long as you guarantee keys are not recycled, and also need to use compaction to remove obsolete records to be removed before aging out
b
Cool. So how would you recommend we achieve / do that?
m
I guess the requirement is to have upsert enabled realtime table and periodically move older data to offline table to do aggregation (weekly/monthly/yearly). So realtime gives the upsert support and offline is used for analytics ? I dont think realtimeToOffline task that moves data from realtime to offline is supported on an upsert table
b
bingo. that's exactly what we are trying to sort out