Raising the Stakes: Enhancing Player Experience using ML/AI
Summary
- Real-time feature serving at scale: Second Dinner implemented real-time feature serving using Databricks to power responsive, data-driven game mechanics for Marvel Snap at scale.
- ML architecture and trade-offs: This video dives into architectural decisions, performance optimization and cost trade-offs behind their solution for delivering personalized gameplay experiences.
- Data-driven game development: Justin Wu shares how data and machine learning fundamentals enable faster game development cycles and more engaging player experiences.
Raising the Stakes: Enhancing Player Experience using ML/AI

Talk by Justin Wu, Director of Data/Data Engineer, Second Dinner ; Max Nienu, Lead SA, Databricks
At Second Dinner, delivering fast, personalized gameplay experiences is key to player engagement. In this video, Justin Wu shares how the team implemented real-time feature serving using Databricks to power responsive, data-driven game mechanics at scale. He’ll dive into the architecture, technical decisions, and trade-offs behind their solution—highlighting how they balance performance, scalability, and cost. Whether you're building live features or rethinking your game data stack, this video offers practical insights to accelerate your journey.
Here’s more to explore:
Economist Impact: Unlocking enterprise AI: https://www.databricks.com/resources/webinar/unlocking-enterprise-ai
The State of Data + AI: https://www.databricks.com/resources/ebook/state-of-data-ai
See all the product announcements from Data + AI Summit: https://www.databricks.com/events/dataaisummit-2025-announcements
FAQs
Why is real-time feature serving important for game development?
Real-time feature serving enables games to deliver personalized, responsive gameplay experiences by immediately applying machine learning models to player data without latency.
How does Second Dinner implement feature serving at scale?
Second Dinner uses Databricks for real-time feature serving, enabling fast computation and delivery of game mechanics features that adapt to player behavior and preferences instantly.
What architectural decisions did Second Dinner make?
The team balanced performance, scalability and cost by choosing serverless infrastructure, leveraging Unity Catalog for data governance and optimizing feature computation for low-latency delivery.
How does data-driven approach accelerate game development?
By using data to understand player behavior and machine learning to optimize game mechanics, Second Dinner can iterate faster, deliver personalized experiences and improve player retention.
Full transcript
Hi there. Thank you all for joining us today. I lead the global strategy for games here at Data Bricks. Really appreciate y'all coming out. For those of you that are watching this virtually down the line, thank you for watching this virtually. have the pleasure of introducing who is the director of data for Second Dinner and he's going to talk about how they are ex modifying the player experience with data and how important that is to what they do for their players.
If you've never heard of Second Dinner, they made a small game. It's called Marvel Snap, right? Yeah. Yeah, that's that game. Now, amazing people. Really looking forward to hearing what has to say. And with that, uh, thank you. Cool. Thanks. Yeah. Thanks, uh, also thanks everyone for, uh, for coming here. I know it's the last day. We're all tired, but yeah, hopefully this will be, uh, short and interesting. So, yeah, let's, uh, kick this off.
Uh, here's the forward-looking statement. I'm sure you've seen this many times. I'm not going to read through it. Uh just know that everything I say here kind of my own thoughts and opinions. Cool. Let's jump into it. So uh I'm going to talk about how we're using data and data bricks to sort of enhance the player experience. All right. So quick introduction about myself. I'm uh. I am the director of data at Second Dinner.
Second Dinner is a small game studio based in, founded in 2018. We have a product, a game called Marble Snap. Marvel Snap is a mobile card game. Uh unlike traditional card games, instead of like battling and killing your opponent's cards, you're presented with three locations. The players play cards at each of the three locations uh and accumulate points that way. And then sort of at the end of the game, whoever has more points at two or more of the three locations wins the uh wins the game, right?
So uh you don't need to memorize all of that. Just know that it's a it's a mobile card game. Cool. So we recently completed the UN Unity catalog migration. Uh we did a few other things. Most of our workloads and jobs are on serverless now instead of the traditional clusters or job clusters. Uh and we kind of have our ducks in a row with regards to the data platform and then data engineering side of things. It's not perfect.
Uh but you know we're pretty happy at where we've landed. So the question is now that the platform is you know the platform improvements are done uh what's next right how do we want to really unlock the power of what data can do for us so here's a few use cases uh that are either implemented uh or kind of an ideation stage. The thing that all of these share that none of them leverage the Unity catalog uh and the serverless workloads yet.
So they're either on kind of the old hive meta store or they're being done manually. Um so later on I'll kind of dive into one of these and look at a a brief case study. But before we do that uh we're going to talk about architecture a little bit. So I got some feedback that my slides were a little technical. So I won't go super in depth in them. Uh I think some engineers might be disappointed but I'll keep it high level.
So this is what kind of our current setup looks like. Um you don't have I won't go into detail about each of these. I think the main thing to take away here is that uh our current setup has sort of two AWS stacks, right? Um and they are managed we use IEC via Palumi. They are managed by different stacks and different repos. Uh one is managed by backend, one is managed by the data team. Cool. So the setup works, right?
So if you saw the flow, let me go back. So there's some injection processes. We do some data brick stuff, put it back into AWS, and then try and get it back into the game. So the setup works uh but there are some issues right. So I mentioned the two sets of AWS systems uh but in addition some of AWS's offerings uh work but maybe aren't perfect. So for example the Sage Maker feature store right is really just a kind of a glorified Dynamo DB.
In fact I think it's based on the same tech. So that comes with all the limitations that Dynamo does. Uh in addition because we're kind of moving data out of the data brick systems. Uh most of our data users are very familiar with data bricks using data bricks notebooks the SQL editor you know orchestrating jobs in there. But once you kind of move that out of data bricks, uh, for them it feels like, you know, the data has just gone into a black hole, right?
So it's kind of like a make your ETL and then kind of like pray and hope that the data ends up where you want it to. Cool. So let's throw all that out the window for a second and talk about what we're really trying to do, right? So let's get rid of the implementation details and kind of abstract uh the process. So it's pretty it's pretty simple, right? It basically falls into a reverse ETL process. So we do something to get the data from the game.
We once the we get the data into data bricks, we process the data in data bricks and then we need to find a way to send the data back to the game or make it available. Cool. So with that, this is kind of our simplified architecture, right? So we explored a lot of offerings that data bricks had. Uh I'll go into more detail on some some of them in a bit, but it turns out that data bricks can now support a lot of the features that were kind of exclusive to AWS in the past, right?
So now instead of having to manage two data brick stacks uh or two AWS stacks we can still let AWS handle the ingestion through Kinesis and fire hose but the processing and the serving can be done in data bricks right um in addition I think data bricks for these use cases is a little bit more featurerich right so it solves some of the pain points of dynamob and the feature groups and then addition Because we're keeping everything in data bricks, the data scientist, you know, the product managers can now kind of validate that the data has worked or is there uh without having to, you know, remember which AWS account the data is supposed to land in, which region it's supposed to land in.
They can just kind of verify the results within data bricks. Cool. Uh so let us dive into a bit of a case study. Uh so just to keep it kind of simpler and at a high level uh we're going to look at kind of how that framework I just showed fits with a recommendation system. Though this is really because this is such a a general framework, it kind of works with all of the the use cases I mentioned earlier. So getting the data from the game, uh thankfully we have some telemetry pipelines already instrumented. uh we managed to move them onto Unity catalog.
So our raw data, our bronze layer, our silver layer was within Unity catalog. So when we started building the recommendation systems, we kind of had, you know, we had a lot of features that we could pick from. So, we wanted to narrow down the scope to, you know, the and we may add more in the future, but we wanted to narrow down the scope to a couple of uh like features or player features that would uh that we could serve recommendations from that would really engage with the players.
So, some basic ones here are, you know, their ownership, right? We don't want to recommend them the same cards. uh we kind of want to look at their purchase history, maybe give more waiting to what they've purchased recently and then in addition kind of maybe ignoring the player aspect look at more trending or meta cards, right? Um so we're using autoloader to ingest the data and airflow to orchestrate the jobs. Some considerations here, right? uh because this is what I consider still in the realm of like data engineering or feature engineering is looking at the ingestion frequency and data cleansing, right?
We don't want dupes. Uh and when we do create these pipelines, we want to make sure they're as fresh as possible, right? Because players move very quickly. They may purchase cards uh that you were going to recommend and now your recommendations are are stale. Well, moving on. So processing the data within data bricks uh we had to come up with a hypothesis on how we wanted to recommend uh these cards to players right so you know I think the obvious sort of thing to optimize for is is revenue but there might be additional considerations right do you is it solely revenue is it short-term revenue or do we want to push players to maybe branch out explore different play patterns uh all that needs to be kind of taken into account.
Once we have that hypothesis and the goal uh train and score the model uh we've tested out different algorithms, different approaches doing this. Uh people much smarter than I are currently iterating on it. So uh I'm not going to talk too much about the algorith algorithms used. But regardless of uh which approach we choose uh we're generating the recommendations in batch right and kind of you know the way that data bricks assists us here right we're using notebooks to prototype and iterate quickly and then once we have an idea of what production looks like we uh submit them as spark jobs through airflow.
Cool. And then the final piece of the three sending data back to the game. So I guess kind of regardless of uh which system we use whether it's AWS or data bricks uh the first thing we have to do is split split the bash recommendations uh by region right because we want low latency when it comes to uh showing the players these recommendations right uh and then figure out a way to sort of enable external systems whether it's backend or some other microser to essentially access these batch generated recommendations.
So to do that, we're using Unity catalog and the online tables with workspaces spun up in the local regions. Cool. And then some key metrics here that we're still currently investigating are kind of the response time and region availability. So AWS regions, lots of availability. I think Gabbricks is getting there. Uh but they don't map onetoone with AWS regions at the moment. Cool. So, uh, with that said, here are some learnings and takeaways that, uh, we've kind of noticed along our journey.
So, the first is that project planning and stakeholder alignment is extremely important, right? So, I kind of like to break these projects out into a three-phased uh, approach, right? So, discovery, design, and implementation. The idea behind discovery is by the end of this phase we should have a yes or no answer on whether this is technically feasible right because if it's not technically feasible then everything else is new right uh so during this process we kind of want to p the new technology uh and come up with an architecture design or proposal uh really answering the question of can we do it so then if the answer is yes and we move on to the design phase the The question we should be answering is should we do it right now that we've shown that we can do it does it make sense uh costwise you know latencywise does this make sense to embark on right and then I think what we've learned is that during this phase we should start to kind of brush the topic of stakeholder alignment right not just making not just like asking stakeholders is this a good idea but getting a concrete plan of what do timelines look like are there engineering resources to dedicate to And then once we answer that implementation should be fairly straightforward.
Uh it's just doing it and hopefully all your uh all your plans are in place, all your timelines are agreed upon and the details really just come down to implementation nuances. So where are we in this journey right now at second dinner? So discovery, yeah, we've proved that we can do it. In fact, uh we have a pretty good pipeline going on right now. So, we're kind of keeping the old pipelines. We move the data processing onto Unity catalog.
Uh we're still sending to SageMaker, but during that phase, we're also forking the data to the data bricks online tables. So, testing uh integration testing can happen with backend on data bricks. We're currently in the middle of our design phase. So what we're looking at now is cost and latency essentially. So per call SageMaker is very cheap, right? So one of the questions we do have to answer is what does that look like on data bricks, right?
Does the uh the pros of you know simplifying our architecture is that worth potentially an increase in cost? Maybe data bricks is even cheaper. We don't know that yet. And then there's the latency issue with region availability that I mentioned earlier. So these tests are ongoing and then obviously because we're still in the design phase, implementation is still TBD. Cool. So the other thing that we've learned is that sometimes data alone isn't enough, right?
Uh just because we can generate these recommendations uh doesn't mean we can get these features in front of players, right? So engineering resources, backend engineering resources, front-end engineering resources are scarce and invaluable, right? Um the data or isn't is part of the tech or but we don't control the backend engineers road map sometimes, right? So to do a lot of this stuff we have to get alignment in advance even once we get these resources right uh to make these playerfacing we kind of have to align with broader work processes like release changes uh branch cuts you know uh when we upload our build to the Apple and Google stores right all of these take time uh and you know once we miss a deadline often it's very difficult to you know go back and hot fix that sometimes impossible.
So what are we looking at next? So we know that we can serve features right through the online tables. Uh talking to our data bricks reps recently we also learned that they're releasing some model serving features right so what does this sort of unlock for us? So if traditionally we let backend handle most of the logic and data supplies the data with this we can push a lot of the logic to data right so for example you know we let's say there's five slots for recommendations uh we want to generate six recommendations just in case that the player has already purchased one of our recommendations right this logic on you know finding what they own which of the five of the six recommendations to show that's all handled by backend.
If we wanted to expand that to seven, eight, nine recommendations. All of those require backend changes. Uh yeah, let's just let data handle that instead. And let's just provide a a contract with backend saying, hey, we'll always give you five cards, five recommendations. Uh it doesn't matter what they own or what's happened. We'll be the ones responsible for that logic. Uh and once we move to model serving, this also unlocks something we've been desperately trying to do for a long time, which is AB testing.
So, you know, we can have, you know, the smartest people in the world. We can have great hypotheses about, you know, which model was going to be better, what's going to perform better, but without testing and sort of these data informed results, you're never quite sure, right? Uh moving to model serving will, you know, allow us to upload different versions of the model, seamlessly, switch between them, generate flags for players, uh for their experiment group.
So, you know, we can roll out, you know, a new model, 10% of players, see what the response is like before choosing to productionalize it or push to production. Cool. Uh, that concludes my talk. Uh, like I promise, short and sweet. Uh, don't forget to fill out your surveys and I will probably step to the side uh for a few moments for Q&A if there are any cues.
Learn more about the Databricks Data and AI platform.
The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.