Sampling Ad Exchange Events at Scale: What We Kept, What We Dropped, and Why

https://hackernoon.imgix.net/images/RucW1OC2vWhUTCz9Ot6iEQf9lPl1-2l83bam.jpeg

At Unity, our ad exchange logged every stage of an auction into Kafka. This included the bid request, bid responses, filters applied, auction decision, fill, impression, and click events. When I looked at the data volume, I found that we were processing around 10 GB per second.

The problem was that every downstream Spark job had to process this entire volume, even when it only needed a small part of the data.

I was the only data engineer in a virtual pod working on this project, along with two product managers, two senior software engineers, and an architect. I proposed sampling the stream and also suggested changes to the Spark clusters running the reports. Here is how we approached the problem and what we learned along the way.

Where was the money actually going?

The data was costing us money at multiple stages. Kafka had to retain and replicate it,...

Copyright of this story solely belongs to hackernoon.com. To see the full text click HERE

Read more

https://assets.bwbx.io/images/users/iqjWHBFdfxIU/i2wKStHqcEnE/v2/1200x800.jpg

PM Lawrence Wong says he doesn't want Singapore used to circumvent US chip export controls, as authorities probe Megaspeed's purchases of Nvidia chips

X: @elonmusk, @aburducky, @sama, @nvidianewsroom, @elonmusk, @gavinsbaker, @jason, @newtgingrich, @lloydblankfein, @senkevincramer, @thestalwart, @paulg, @cz_binance, @samstein, @shaunmmaguire, @gavinsbaker, @daveweigel, @cgasparino, @gaismair, @dougjballoon, @deredleritt3r, @mgsiegler, @thatdanstewart, @thelonginvest, @tomwarren, @jbillinson, @mattyglesias, @natrothschild1, @hshaban, @arashmassoudi, @thetranscript_, @thestalwart, @mvcinvesting, @shakeelhashim, @obrien, @claireatki, @suchenzang,