Netflix Hollow: Java Tools for Managing In-Memory Datasets
- By John K. Waters
Netflix has announced a new Java library and toolkit for managing small- to medium-sized in-memory datasets that are disseminated from a single organization to multiple users for read-only access. Dubbed Hollow, the open source offering replaces the Zeno in-memory data distribution framework the company announced in 2013.
Hollow provides an alternative to traditional strategies for distributing larger sets of data not easily defined as "Big Data" -- product and document metadata, for example -- over a network. Instead of storing the data in a central repository or serializing it in JSON or XML (or implementing a hybrid of both), and then distributing it via network edge servers, Hollow caches an entire read-only dataset in memory. This solution solves core performance issues for the globally distributed streaming media service, but also offers to "liberate" large datasets in other contexts.
"Hollow shifts the scale in terms of appropriate dataset sizes for an in-memory solution," Netflix senior software engineer Drew Koszewnik explained on the company's tech blog. "Datasets for which such liberation may never previously have been considered can be candidates for Hollow."
Hollow may be appropriate, for example, for datasets which, if represented with JSON or XML, might require more than 100GB, Koszewnik said.
Netflix has been using Hollow internally for about two years, evolving its capabilities so that it now provides in-memory caching of datasets of up to several gigabytes. It was built "with servers busily serving requests at or near maximum capacity in mind," the company said. Hollow can also generate a custom API automatically based on a specific data model. And it can, over time, calculate the changes in a dataset automatically.
"Hollow has been enormously beneficial at Netflix," Koszewnik said. "We've seen server startup times and heap footprints decrease across the board in the face of ever-increasing metadata needs. Due to targeted data modeling efforts identified through detailed heap footprint analysis made possible by Hollow, we will be able to continue these performance improvements." The company also reported "huge productivity gain" around the dissemination of its product catalog. "This is due in part to the tooling that Hollow provides, and in part due to architectural choices which would not have been possible without it," he said.
Netflix has been providing open source tooling and resources like Hollow via its Open Source Software Center for some time now. Its offerings range from Big Data tools and services to build and delivery tools, runtime services, and security applications that run on the NetflixOSS platform. The OSS Center focuses on technology "providing immersive experiences across all internet-connected screens."
The Hollow code is available now on GitHub, and documentation is available on the company's Web site.
John has been covering the high-tech beat from Silicon Valley and the San Francisco Bay Area for nearly two decades. He serves as Editor-at-Large for Application Development Trends (www.ADTMag.com) and contributes regularly to Redmond Magazine, The Technology Horizons in Education Journal, and Campus Technology. He is the author of more than a dozen books, including The Everything Guide to Social Media; The Everything Computer Book; Blobitecture: Waveform Architecture and Digital Design; John Chambers and the Cisco Way; and Diablo: The Official Strategy Guide.