TL;DR
Dolha is a novel data structure designed to handle the "firehose" of streaming graphs (like internet traffic or social media feeds) in real-time. By combining hash tables with double orthogonal linked lists, it achieves $O(1)$ edge update speeds—processing millions of edges per second—while maintaining 100% accuracy, a feat previously reserved for much slower or memory-intensive systems.
What Problem Does This Paper Address?
In the modern world, data often arrives as a streaming graph: a continuous sequence of edges (e.g., "User A messaged User B at 10:01 AM"). Traditional graph data structures struggle with this for three reasons:
- Velocity: Systems like internet routers process billions of packets per hour; updates must happen in nanoseconds.
- Volume: Storing every connection exactly often requires more memory than is available.
- Dynamics: Unlike static graphs, streaming graphs change constantly. We often need to query "sliding windows" (e.g., "What happened in the last 10 minutes?") or historical states.
Existing solutions usually force a trade-off: Exact structures (like adjacency lists) are too slow for high-speed updates, while approximate structures (like TCM) are fast but lose information, leading to "false positives" in queries.
Methods
The authors introduce Dolha (Double Orthogonal List in Hash Table). Its architecture relies on two main components:
- The Dolha Snapshot: Designed for the current state of the graph. It uses a Vertex Hash Table and an Edge Hash Table to map IDs to internal indices instantly. The "magic" happens in the Double Orthogonal List: every edge is stored once but belongs to two linked lists—one for the source vertex's outgoing edges and one for the destination vertex's incoming edges. This allows for $O(1)$ (constant time) edge insertion and deletion.
- The Dolha Persistent Structure: Designed for historical and time-related queries. It adds a "Time Travel List"—a single linked list that connects all historical occurrences of the same edge. This allows the system to efficiently manage sliding windows by "expiring" old edges without rebuilding the entire graph.
Datasets
The researchers evaluated Dolha using four diverse datasets:
- DBLP: A co-authorship network (10.6 million edges).
- Twitter: A massive social link graph (2 billion edges).
- CAIDA: Real-world internet traffic traces (100 million unique edges).
- GTGraph: A synthetic dataset generated using the R-MAT model to simulate power-law degree distributions (1 billion edges).
Key Insights and Ideas
- The "Best of Both Worlds" Architecture: Dolha proves that you don't need to sacrifice accuracy for speed. By using hashing for addressing and orthogonal lists for structure, it matches the speed of probabilistic "sketch" structures while remaining 100% exact.
- Chronological Efficiency: Because streaming edges arrive in time order, the edge table in Dolha is naturally sorted by time. This makes sliding window updates (deleting expired data) a simple linear scan or binary search, rather than a complex reorganization.
- Memory Compactness: By avoiding the overhead of complex tree structures or massive adjacency matrices, Dolha can fit billions of edges into standard server RAM (e.g., 2 billion edges in under 90GB).
Key Results
- Throughput: Dolha reached processing speeds of over 2 million operations per second on the DBLP dataset, significantly outperforming GraphStream (an industry-standard exact structure).
- Precision: Unlike approximate structures like TCM, which showed declining precision on complex queries (like 1-hop neighbor searches), Dolha maintained 100% precision across all tests.
- Scalability: On the Twitter dataset, while GraphStream crashed due to memory exhaustion, Dolha successfully processed the 2-billion-edge stream using less than 90GB of memory.
- Query Speed: For edge queries, Dolha was up to 5 times faster than baseline adjacency list methods on the CAIDA dataset.
Limitations and Future Work
- Main Memory Dependency: Dolha is designed to reside entirely in DRAM. While memory-efficient, it is still limited by the physical RAM of the server. For graphs exceeding several terabytes, a disk-based or distributed version would be necessary.
- Super-node Bottleneck: While edge updates are $O(1)$, neighborhood queries are $O(d)$, where $d$ is the degree of the vertex. In graphs with "super-nodes" (vertices with millions of connections), these queries could still become a bottleneck.
- Future Directions: The authors suggest exploring how Dolha could be integrated into distributed streaming frameworks like Apache Flink or Spark Streaming to handle even larger scales.
Summary updated