Scaling Identity Graph Ingestion to 1M Events/Sec with Spark Streaming & Delta Lake
Summary
- Scale achievement: Adobe processes 1 million identity graph events per second using Spark Streaming and Delta Lake, connecting over 70 billion identities in real time.
- Global deployment: Adobe leverages 25+ Databricks deployments across multiple regions and clouds (Azure and AWS) to handle terabytes of data daily.
- Pipeline optimization: The platform achieved a 10x increase in ingestion capacity by migrating from Flink to Spark Streaming and optimizing deduplication with robust monitoring.
Scaling Identity Graph Ingestion to 1M Events/Sec with Spark Streaming & Delta Lake

Talk by Akanksha Nagpal, Sr. Data Engineer, Adobe ; Jianmei Ye, Sr. Software Engineer, Adobe, Inc
Adobe’s Real-Time Customer Data Platform relies on the identity graph to connect over 70 billion identities and deliver personalized experiences. this video will showcase how the platform leverages Databricks, Spark Streaming and Delta Lake, along with 25+ Databricks deployments across multiple regions and clouds — Azure & AWS — to process terabytes of data daily and handle over a million records per second. The talk will highlight the platform’s ability to scale, demonstrating a 10x increase in ingestion pipeline capacity to accommodate peak traffic during events like the Super Bowl. Attendees will learn about the technical strategies employed, including migrating from Flink to Spark Streaming, optimizing data deduplication, and implementing robust monitoring and anomaly detection. Discover how these optimizations enable Adobe to deliver real-time identity resolution at scale while ensuring compliance and privacy.
Here’s more to explore:
Production ready data pipelines for analytics and AI: https://www.databricks.com/solutions/data-engineering
The Big Book of Data Engineering: https://www.databricks.com/resources/ebook/big-book-data-engineering-2nd-edition
See all the product announcements from Data + AI Summit: https://www.databricks.com/events/dataaisummit-2025-announcements
FAQs
How many events per second does Adobe's identity graph process?
Adobe's platform processes over 1 million identity graph events per second, enabling real-time identity resolution across their Real-Time Customer Data Platform while connecting 70 billion identities.
Why did Adobe migrate from Flink to Spark Streaming?
Adobe migrated to Spark Streaming for better integration with Delta Lake and Databricks, achieving a 10x increase in ingestion pipeline capacity and more efficient handling of deduplication at scale.
Best tool for large-scale data processing
Apache Spark has emerged as the industry standard for large-scale data processing due to its fault-tolerant distributed architecture and ability to handle massive data volumes with consistent performance. This video demonstrates how Adobe processes over 1 million identity graph events per second using Spark Structured Streaming on Databricks, connecting 70 billion identities across multiple clouds and regions while processing terabytes of data daily. Spark's maturity, ecosystem integration, and proven track record make it the preferred choice for mission-critical data pipelines in production environments.
Spark versus Dask for large-scale data processing?
Adobe chose Spark Streaming over Flink for better integration with Delta Lake and Databricks' unified data platform, enabling a seamless architecture for identity resolution at scale. The migration achieved a 10x increase in ingestion pipeline capacity, allowing the platform to handle peak traffic during high-demand events like the Super Bowl without infrastructure degradation. Spark Structured Streaming provides superior deduplication capabilities and seamless integration with Delta Lake's ACID transaction guarantees, making it ideal for identity resolution workloads requiring strong consistency.
Full transcript
Hi everyone, thanks for joining today's session. We are excited to share how we have built a system capable of processing 1 million in graph per second using spark structured streaming take. Now 1 million may sound abstract but if you really think about it it's like resolving the entire population of San Francisco per second. The challenge that we set out to ourselves was this. How do we continuously scale identity identity resolution keeping the identity graph fresh in real time and also being privacy compliant at all the steps.
But before we dive in let me quickly introduce ourselves. I am a Kanga. I'm joined with my colleague Janme. We are both engineers at Adobe working as part of INT graph team. Our team is responsible for building and scaling identity services within Adobe Experience platform. Our focus has primarily been on designing and developing high throughput large scale data pipelines that are respon and our most of our time is spent on technologies like Spark, Delta Lake and Flink to make this happen.
Moving on, let's take a look at the agenda for today. So we'll start with an overview on what is Adobe INGraph. We'll talk about our journey from where we were 5 years back and how we went to 10x. We'll talk about some of the scaling and optimization techniques and do a deep dive on what the problem was and how we solved it. We'll also talk about some of the privacy compliance strategies that we follow along all the steps.
And then we do have our custom deployment workflows that are built on top of data brick workflows. We'll share how we are managing that and we'll wrap up with lesson learns and key takeaways followed by a quick question and answer session. Before we dive in, I just want to see a quick show of hands. How many of you know Adobe mainly from Creative Cloud and PDF? Well, thought so. That's what we are most known for. And how many of you know Adobe's work in digital experiences?
Great to see some hands there. well for others you are in the right place. So Adobe experience platform we have RTCDP that helps brand that unify customer data. We have data coming in from various sources like mobile apps, web SDKs and CRM updates. We unify all this data and build something called as unified customer profiles. All of this data then get activated on various channels like LinkedIn, Facebook, email campaigns and so on.
Now at the heart of the system is identity graph. IND graph has an ability to resolve billions of customer identifiers across various devices and channels. So let's talk about how we stitch this IND graph. We have identity signals coming in from various channels like web events, mobile SDKs. We stitch them together in real time. This stitched graph then power personalized campaigns and cross device activation and measurement.
But scaling this graph both in terms of volume and freshness has unique challenges. And that's where our work on Spark and Delta Lake comes in. Ensuring real time with strong guarantees. Now we have talked about what identity graph is. Let's talk about the scale at which we operate. So we ingest pabyte of data daily. 70 billion records flow through our system every single day and we process these messages at a peak of 1 million per second.
All of this then feeds into identity graph. and we have built the service from the ground up. Before I dive in about our architecture, let's maybe take a step back and do a rewind on how we started. So when we started, we have a service which is doing data collection from various channels and it's then feeding it all onto streaming topics. Then we have our streaming processing pipeline using flink uh which was a single-led architecture.
So we the single pipeline will look into reading the messages processing them applying the stitching algorithms and then writing them back to identity graph store and all of this was deployed on Kubernetes clusters. So this worked pretty well and then we started realizing the challenges as we started scaling up. So let's talk about some of the challenges that we faced. The number one was operational over overhead. So these apps were actually deployed on self-managed Kubernetes clusters and these clusters will have to do continuous upgrades, manage the operational challenges and also do the maintenance task which is quite challenging for a team of software developers.
The second bigger problem was it was a single pipeline where we had the processing, reading, writing to storage all as part of same pipeline. So what that meant was if we have newer topics coming in where the partition size increases we could not really scale up same block because then we'll have bottleneck on when we are writing it to the graph layer and then the third problem was noisy neighbor. So all these streaming pipelines have data coming in from multiple tenants and if one tenant bring in more data it can cause bottlenecks on the system and cause resource contention.
So now now let's take about our current architecture. So the first component that we see here is we have data collection same as before writing everything to streaming topics. Now comparing it with what we saw as our initial architecture with what we see on the slide right now we have a multi-layered architecture compared to a single layer. The first component here which we can see is the data processing step. So this step is the one which reads data from Kafka.
It also takes care of normalizing, enriching and converting it to canonical format. All the rights happen to Delta Lake in append mode. And we rely on Delta Lake asset capabilities to maintain strong concurrency guarantees and checkpointing fall tolerance. The second component that you see is data injection which reads data from lake and writes it to I in graph store. And uh data injection layer is the one where we apply our proprietary stretching algorithms to have different kind of institching rules applied and all of this deployed on datab bricks clusters.
Okay. But the current going from the initial architecture to final architecture had some various phases. So our first phase was flink on Kubernetes where we had self-managed KS and operational overheads with single pipeline. Then we started experimenting with Spark structured streaming to see if it will fit in our scale and go at least meet what we were doing and can go beyond. When we did our experiments, they looked pretty good and we were able to get the same scale and also do lot of more optimizations on top of it.
And now the problem in phase 2 was we had some tenants migrated to Spark streaming while some tenants which were on Flink. This was again operationally challenging to maintain. So in third phase we had a fully managed database deployments. No more Kubernetes clusters to handle these pipelines and spark structured streaming for all tenants. But again like any other system to grow beyond as we are scaling up getting in more customers onboarded we had to apply lot more optimization techniques and solve various different set of problems.
We'll talk in detail about each of these problems how we solve it. But some of them were like noisy neighbor, rate limiting, metadata resolution, delta-like optimizations, checkpointing. So here is a quick look on the optimization techniques. Number one is microbatching where we are tuning the microbatch intervals to fit into our scale and throughput requirements. We have data dduplication. We'll talk about what data dduplication means in context of INT graph.
Then we have asynchronous task execution where we have parallel IO so we don't have blocking IO's also noisy enable problem how did we address that and then making sure we have an efficient resource utilization at the cluster level where there's no skew and also we'll talk about metadata resolution using inmemory snapshot based lookup. So starting off with microbatching. So as we scaled up our system, one of the most inefficiencies we saw was redundant ID graph updates.
So in our pipeline, identity graph signals usually arrive from high frequency sources as we talked about before like web events, mobile and CRM updates. And these events usually carry similar kind of ids which can cause a bottleneck. So what we were doing is we were processing all the events that they were coming in writing to our graph store without any intermediate filtering. So you can imagine like when you go to a website you may browse through different pages you may refresh your screen you may go to a different product view section and all of them within few seconds.
When we talk about ID graph all we care about is the ID relationship. We don't really care about how many times we saw it because at the end of the day it's the same ID that we matching to the other ID. So because of this repeated rights we were actually hammering our graph store for the same identifier edge 100 of time per user hour and this had real cost all in terms of compute storage as well as processing. So let's talk about how we address this problem.
So we addressed this problem at two levers. The first one was microbatching and the second one was dduplication. So in microbatching we adjusted the microbatch interval of a strap spark streaming app in a way where we were able to give a natural coasis of repeated events. Right? And now let's talk about dduplication. within each batch we applied like some sort of deterministic dduplication layer on ID pairs with this now instead of doing hundreds of writes per hour we will emit one single canonical relationship into the graph and this helped stabilize the load on back end what we noticed was there was an 80% drop in the duplicate data and our downstream systems were able to maintain and sustain much more load and we were able to scale easily.
So in your pipelines, if you're seeing more load at the sync layer, be it a key value store, graph store or external APIs, always think about maybe there's a potential redupling that we can apply so that it can help with not just processing but also being cost efficient because sometimes it's not about scaling. We can go as crazy and scale up our infrastructure but sometimes we also have to think about removing that should not be there at the first place.
Okay, moving on. The second strategy or the second problem that we noticed in our system was data skew especially when we were reading from topics which were not of uniform sizes. So some topics would carry significantly high volume compared to others and the spark partitions which are actually polling from these topics will be overwhelmed. My team actually ran into this issue when we were scaling injection pipeline and I want you to walk through how we solve this problem.
So imagine the same Kafka topics where we have two categories. The first category is where we have identity signals coming in from high frequency web browsing events like analytics, page views, product views, etc. And this will carry almost 80% of the data compared to the other topic which was relatively lower volume frequency CRM updates. Now the spark partitions on the streaming app which were reading from uh the high volume topics were actually overwhelmed and the spark partitions which were reading from lower volume topics were underutilized.
So how did we address this problem? We actually used uh an explicit repartitioning step after reading from after reading from the topics. This helped balance the skew dynamically and also help us achieve better parallelism at the executor level. What we observe was now we have a much better cluster utilization. Almost all executed has similar CPU percentage and also you were able to bring down the straggler task by over 40%.
Now you may question hey repartitioning is expensive. It is because it introduces a shuffle. But then if data skew is not addressed early in your pipeline, the skew will carry forward anyway and the next stages of your pipeline will have to pay for it. So why not address it early and you can scale out horizontally to match out as the more load is coming in. So if in your pipeline you are seeing skew all you should always think about how you can repartition in the most optimized way and then this will help you save at a later time in both time as well as cost.
Okay now I'm going to pass the mic to my uh co-presenter Janme to talk about in detail on other optimization techniques. Thank you. Okay. Um yeah thank you. So I think we not talk about the repartitioning that uh definitely improve the resource utilization. However, we still have uh face a latency issues because by the time we are processing everything in sequence. So the there's a big performance gain that can be when we introduce a customer asynchronized execution model.
So basically um essentially our spot thread it will just um getting bogged down because they're waiting for the database right to been finished. So every time we need to update identities to write to our graph store with fun database the mess rate just wait and stop and waiting and causing the bottlenecks. So that's why we implement a asynchronized multis rated execution model. Well that instead having the mess rate to wait for the database fing we can have them to assign a war to a dedicated put right then when the next will continue post new task and without waiting and more important here is the sliding window part.
This is where we use it to control how many concurrency IO task uh will be you can go not to the open mono database. So with this approach I think the improvement is substantial that we have two for improvement uh in the injection latency we have better stabilization and we have much more consistent throughput at scale. Okay, the next one is when our service expended to support more tennis, we run into the classic problem that in the multi-en system, the noise enabled.
Um, so you can thinking that um like one customer they maybe have mis conversations, right? They are sending a lot of events or maybe a blogging assistance, right? and single tenants could uh just use a large chunk of data that impacting everything else. Then these just some examples that would impacting caused by the noise enables. So one might think that we just simply fix to drop the extra events but that is not acceptable because we don't want to lost customer data.
So instead we create a elegant rand solution. So in this solution um each tenate you will have a certain quarter uh for high priority processing. As long as that within that certain uh quarter the everything flow quickly but if it exists the limit we are not dropping data we just move them into a slow pass and that slow path uh have a control rate right to a different data table here uh so that you're not impacting everyone else so with this approach I think it's predictable uh it's fair that there's we also prevent single tenant from causing issue for everyone and you can avoid the taking over the share resources.
I think one of campaign we have single tendency like a 1 million event per hour and we cod it with five minutes because of this approach and then we trigger the ring meeting uh and we put like 700 plus tendants for ejection pipeline. Okay, I think another big challenge we face is dealing with the anomous identities. So what is enormous identities here? So they are identities that unusually interconnected. Um so possible reason caused by the data quality issues, right?
Or maybe some uh some misconfigurations is also possible causing this connection issue. So imagine that you have one email address that's linking to like thousands of users or maybe a device ID is like connected messy numbers profile right that's kind of issue we're talking about so then this causing two major issue here one is because this when we process this highly connected uh identities that's going to introduce a lot of simultaneous transactions that hitting the identity clusters that will bring the overhead to a database and cause the conflicts right and second is was slowing everything down because you share the multi system.
So for to address this we define a auto anonymous detection system to detect this or to spot this behavior early. So in this approach we continuously monitor for identities that start uh building unusual large connections and then reflect this these uh identities before they can cause a problem and our detection system will look at several metrics. We will look at the array of new connections being formed the total size identity clusters and the frequency of multiple operations.
So when any identity cross our threshold you will get automatically fed and routed a special handling. So instead of processing uh these anonymous identities through our standard high priority uh through proof pipeline we will isolate those into a separate processing tech track for different algorithms that can play on. Okay. Now let's talk about something interesting here. So I think one of the performance issue that kind of cause us surprise is uh the overhead of the resolving the metadatas in a longunning spa application.
So you can imagine that in that higher events as new events froze in we constantly needed to uh look up their metadata. Um so we look at for example like the template configuration the schema mapping or the how we processing the rules for events. So that means that every time when we encounter a new tennis ID, our executor will make HTTP calls to uh fetch the external metatas service and each code you introduce that 10 to 15 milliseconds per minute, right?
Latency and even though we have a TTL based cache in place need to make thousands of API calls to get this information back. Um and this botness is easily get worse when the events bonus increase and they can put real pressure to the external metas service. So our solution here was to use the uh net hollow is a open source library that we can use to cache all the meta metadata in memory. So at a high level with N hustle here it takes a snapshot of your data set um it will compile it into a compact binary format so that um in that way you avoid object creation in instead they by using the primited array under the hood and you don't need to be ser into a Java object because they use the type set assess API to access fe the memory directly So it's optimized for use case exact like this that you want to look at something small something infrequent updates to the metad data then this something that mings or schema schema reference or config rules this is why you can dage so what does it mean that so once loaded um so every executors they will have a local cache uh that is have the GC efficient and uh you require minimum coordinations with the external systems.
So that means that we just need to load this once and then we will have that data in local then for executors and after that lighting will be light will just lighting fast that will reduce from millisecond to nanconds and of course also it will ind up like warming process when time the job started because all you need to do is periodically update if there's any underlying data Okay, now let's talk about privacy complian.
I think most of you might leverage the one key change that um match a production delta leg uh is a key part is how to match the files clean up while maintaining the same compliant and the data integrity. Right? So I did that data links uh vacuum is uh and it provide very useful pool. Let's talk about that is versioning. So the versioning is powerful because it allows for time travel. It allows the rollbacks and as a transaction right then del also provide vacuum operation that can claim operate can clean the data files that can improve the storage and the performance.
But there's a tricky part here is is how to you can't to be too aggressive because if coding the vacuum too frequently it might delete data that's still referenced or used by the ongoing processes. So our solution here is we actually create a marker based approach. So after each micro batch that in the SP structure minute every micro batch finish its job and the changes are committed we'll write a marker file to show that this file is safe to clean up and this is insure and when our back when our uh backing process started you will only delete file under two condition.
One is data is older than the retention limit or it has a marker file. So in this way you can ensure that we don't accidentally delete anything is important and we can keep out the storage clean and without risking any uh data loss. Okay. Uh now let's talk about deployment the updates to the our crypto our our mission crit mission critical streaming applications right. So all the streaming injection they are 24* 7 uh the process minions events that we cannot afford any downtime.
So the traditional uh methods that involving starting stopping a service restarting service is just something not an option for us. So here we provide a custom deployment mechanism the broken deployment. So in this deployment we what way how it works like we're launching a new cluster step back. So all this deployment is built on top of the database workflow. So whenever one try to do a deployment we deploy a new version of cluster with a new virtual application.
Um then we will make sure when everything is stable all we need to do just to uh switch our traffic to a new cluster and gracefully shut our old one. And if anything went goes wrong, we can quickly switch back by flipping the configuration flags. So this strategy has enabled over 25 database workflows and our CI/CD pipeline has since support for AWS and Azure environments and I think that also build on top some our self manage Jenkins infrastructure.
So basically with this approach we are easy to manage our service which is stful like a web service that's stless as simple as that is okay um let's talk about let me just summarize what have accomplished with all the optimization techniques and overviews about what the tal about so far. So through all these changes we successfully scale identity graph injection to process more than 1 million event per second is a true 10x improvement uh from where we started and second our micro batch and duplication strategies lead to a 80% reduction to the redundant rise that's cutting both storage and the overhead of the processing and we also tackled the kafuka partition uh skewed and the task imbalance by introduced repartitioning that reduce the strle task and maximum of course utilization.
The multi- threaded asynchronous execution model give us 2x uh improvement to injection latency while maximizing uh the utilization of the CPUs and our limiting resolution solve the noise enable problems while maintain the fairness across the tennis and our optimization for the metadata resolution using Netflix hollow also gave us uh reduce the latency from the milliseconds to the nanconds and also we have the privacy everything is built under the privacy compliant.
Uh we have the compliant clean up ensure in place and the program deployment can automate all this deployment seamlessly um with routine as well. I think the take away from our team and what from this slide is like what we share today um is it's a month of dedicates like we scaling the pipelines uh we fine-tune the performance we make sure everything's reliable and under compliant so uh ultimately I think the scale is success is not just about doing more it's more about doing uh faster and safer So anyone of you interested in any topic further uh we we can disconnect offline u but then we have a Q&A questions after that this okay join
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.