News for hackers. Stuff that matters.
Re:Chronon, Airbnb's ML Feature Platform, Is Now Open Source by giovannibonetti on Tuesday April 09, 2024 @02:17PM (#39982385)
You may want to take a look at Starrocks [1]. It is an open-source DB [2] that competes with Clickhouse [3] and claims to scale well – even with joins – to handle use cases like real-time and user-facing analytics, where most queries should run in a fraction of a second.

[1] https://www.starrocks.io/ [2] https://github.com/StarRocks/starrocks [3] https://www.starrocks.io/blog/starrocks-vs-clickhouse-the-qu...

Re:Chronon, Airbnb's ML Feature Platform, Is Now Open Source by nikhilsimha on Tuesday April 09, 2024 @02:34PM (#39982603)
We did and gave up due to scalability limitations.

Fundamentally most of the computation needs to happen before the read request is sent.

Re:Chronon, Airbnb's ML Feature Platform, Is Now Open Source by omeze on Tuesday April 09, 2024 @03:12PM (#39983059)
That evaluation would be an amazing addendum or engineering blog post! I know it’s not as sexy as announcing a product, but from an engineering perspective the process matters as much as the outcome :)
Re:Chronon, Airbnb's ML Feature Platform, Is Now Open Source by jvican on Tuesday April 09, 2024 @02:42PM (#39982683)
Hey! I work on the ML Feature Infra at Netflix, operating a similar system to Chronon but with some crucial differences. What other alternatives aside from Starrocks did you evaluate as potential replacements prior to building Chronon? Curious if you got to try Tecton or Materialize.com.
Re:Chronon, Airbnb's ML Feature Platform, Is Now Open Source by nikhilsimha on Tuesday April 09, 2024 @03:19PM (#39983131)
We haven’t tried materialize - IIUC materialized is pure kappa. Since we need to correct upstream data errors and forget selective data(GDPR) automatically - we need a lambda system.

Tecton, we evaluated, but decided that the time-travel strategy wasn’t scalable for our needs at the time.

A philosophical difference with tecton is that, we believe the compute primitives (aggregation and enrichment) need to be composable. We don’t have a FeatureSet or a TrainingSet for that reason - we instead have GroupBy and Join.

This enables chaining or composition to handle normalization (think 3NF) / star-schema in the warehouse.

Side benefit is that, non ml use-cases are able to leverage functionality within Chronon.

Re:Chronon, Airbnb's ML Feature Platform, Is Now Open Source by jamesblonde on Tuesday April 09, 2024 @03:57PM (#39983565)
FeatureSets are mutable data and TrainingSets are consistent snapshots of feature data (from FeatureSets). I fail to see what that has to do with composability. Join is still available for FeatureSets to enable composable feature views - join is resuse of feature data. GroupBy is just an aggregation in a feature pipeline, not sure your point here. You can still do star schema (and even snowflake schema if you have the right abstractions).
Re:Chronon, Airbnb's ML Feature Platform, Is Now Open Source by jamesblonde on Tuesday April 09, 2024 @03:58PM (#39983582)
Normalization is a model-dependent transformation and happens after the feature store - needs to be consistent between training and inference pipelines.
Re:Chronon, Airbnb's ML Feature Platform, Is Now Open Source by nikhilsimha on Tuesday April 09, 2024 @04:31PM (#39983925)
Normalization is overloaded. I was referring to schema normalization (3NF etc) not feature normalization - like standard scaling etc.
Re:Chronon, Airbnb's ML Feature Platform, Is Now Open Source by jamesblonde on Tuesday April 09, 2024 @04:49PM (#39984092)
Ok, but star schema is denormalized. Snowflake is normalized.
Re:Chronon, Airbnb's ML Feature Platform, Is Now Open Source by nikhilsimha on Tuesday April 09, 2024 @06:10PM (#39984841)
To be pedantic, even in star schema - the dim tables are denormalized, fact tables are not.

I agree that my statement would be much better if used snowflake schema instead.

Re:Chronon, Airbnb's ML Feature Platform, Is Now Open Source by jvican on Tuesday April 09, 2024 @05:19PM (#39984374)
Thank you for sharing!
Re:Chronon, Airbnb's ML Feature Platform, Is Now Open Source by throwaway2037 on Tuesday April 09, 2024 @11:04PM (#39986566)
What is the meaning of pure kappa?
Re:Chronon, Airbnb's ML Feature Platform, Is Now Open Source by pedrosorio on Tuesday April 09, 2024 @11:46PM (#39986756)
Re:Chronon, Airbnb's ML Feature Platform, Is Now Open Source by esafak on Tuesday April 09, 2024 @02:50PM (#39982777)
Please can you expand? What limitations, computations?
Re:Chronon, Airbnb's ML Feature Platform, Is Now Open Source by nikhilsimha on Tuesday April 09, 2024 @03:08PM (#39983029)
Let’s say you want to compute avg transaction value of a user in the last 90days. You could pull individual transactions and average during the request time - or you could pre compute a partial aggregates and re-aggregate on read.

OLAP systems are fundamentally designed to scale the read path - former approach. Feature serving needs the latter.

Re:Chronon, Airbnb's ML Feature Platform, Is Now Open Source by esafak on Tuesday April 09, 2024 @04:50PM (#39984099)
Does Chronon automatically determine what intermediate calculations should be cached? Does it accept hints?
Re:Chronon, Airbnb's ML Feature Platform, Is Now Open Source by nikhilsimha on Tuesday April 09, 2024 @06:10PM (#39984851)
We don't accept hints yet - but we determine what to cache.