Lurker News
How does your company visualize and report on what’s happening in the business?

Comments (173) 85 threads

Show all comments

Showing thread 71 of 85

EdwardDiego2 replies#
Kafka streaming to validate and attach model data, fed into Druid by Flink, queried via a custom front end.
perlgeek#
We use something similar in the first half, Kafka -> Flink -> (Druid | PostgreSQL) -> Metabase

We use Druid for time series data, and Postgres for everything else.

chrisjc1 reply#
> and attach model data

Can you elaborate on this? Do you mean enriching events and/or windowing/aggregating/summarizing?
Are you using KSQL?

EdwardDiego1 reply#
Yeah, enriching the events as they pass through - so we have a Kafka Connect JDBC source polling the source of truth DB every X seconds for model changes (we looked into Debezium for streaming model changes, but the additional complexity didn't bring us much benefit based on how often our model changes), and then we pull that into a GlobalKTable and join the KStream as appropriate.

We also use Kafka streaming with a persisted event window store to deduplicate across a window of 2 hours.

chrisjc1 reply#
Mind if I ask you what you used to capture source changes if Debezium didn't work out for you? Is there a specific Kafka Connector for JDBC that you're using?
EdwardDiego#
Nope, just the JDBC Connector configured for Postgres. It wasn't that Debezium didn't work out of us, more that it brought in more complexity (e.g., https://debezium.io/documentation/reference/1.0/postgres-plu...) than the payoff justified.

If we had a need for near instantaenous model updates, then I'd definitely go Debezium. We didn't use it because we didn't need it - a generic KC JDBC source with a poll period of 5 seconds met our needs.s