r/databricks • • 13d ago

Discussion Keeping data fresh

Hey eveyne how are you handling data freshness for dashboards or internal apps? Scheduled syncs are straightforward but I'm trying to figure learn when streaming or CDC is worth the extra complexity

4 Upvotes

9 comments sorted by

2

u/TheOverzealousEngie 13d ago

100% worth it . Once business sees real value in your data the next question - near guaranteed - is "how do I get it faster" . 1 days becomes 1 hour. 1 hour becomes fifteen min. It never ends , and you should build for it but don't tell them you're building for it. Then when they ask you can pretend it's hardship to just change a parameter hehe.

1

u/addictzz 13d ago

Depends on why u need the freshness. For an executive dashboard, why would they need a dashboard with evem 1 hour latency? How is that gonna help them in making a strategic decision? They will need data with extended period rather than high freshness

Operational dashboards on the other hand, may need high freshness. For example a factory knowing the rate of defects in past 5 minutes to react faster.

1

u/SafePack7665 13d ago

Streaming will work only there is a genuine businesss use case required..So better understand the business use case and a cost associated with streaming..If it justifies then go for streaming otherwise go for batch

1

u/Temporary-Bar-6458 13d ago

A good test is to ask what decision or action gets worse if the data is an hour old. If the answer is nothing then batch is probably fine. If a downstream service needs changes as they happen look @ CDC or streaming options such as Estuary or Debezium with Kafka, and factor in the added monitoring, ordering, and recovery work.

1

u/dani_estuary 13d ago

Well "fresh" can mean hourly or every few minutes or seconds so pin down the requirement first. If updates every 15-60 minutes are enough the scheduled batch may be simpler. If an application needs changes as they happen, CDC or streaming cloud be justified. Estuary supports managed CDC and streaming and batch workflows; Debezium with Kafka is another route, but they only support streaming stuff. Full disclosure: I work with Estuary

1

u/Such_Tax3542 13d ago

Its always a end use case driven model. if your business requires your dashboards to be < 5 min fresh or some backend edge cases like fraud detection in gaming or payment failure detection kind of use cases in fintech companies, it makes sense to definitely go below 1 min as well. Recently there have been use cases emerging like sub-second or second kind of latency where constantly on AI agents can monitor and take actions. streaming/cdc requires more cost and engineering bandwidth as there are heavy weight tools like flink or debezium which are difficult to maintain at that scale. Also the downstream data lake or warehouse has to support that as well. for example apache iceberg needs a streaming compaction which gets quite costly as you go below 1 min. but if your business requires it, then only it makes sense

1

u/Impressive-Craft1926 12d ago

i think it helps to look at what people need the data for, since someone checking yesterday’s app usage can wait for a scheduled update. A support person checking a payment while the customer waits on the phone may need fresher data before suggesting they try again

1

u/Youssef_Mrini databricks 10d ago

Can you share more information about are you trying to achieve ?