top of page
Matthew Hardin

This Is Not Your Father's Directory Server

Updated: May 27, 2021


In the mid 1990s I was working on a project to develop a large-scale user and access management system. Because this system had to be able to scale to large numbers of users, it seemed a good idea to use an X.500 directory to store the user data. We also liked the X.500 data model because it provided excellent syntactic control over entries. One of the directory servers we looked at was an X.500 directory server from ICL. While we were discussing the project goals with an ICL engineer, he stopped, cocked his head, and said “You aren’t actually going to populate the user interface with entries from the server as they’re returned, are you?” I replied that, yes, that’s exactly what we wanted to do. He proceeded to explain to me that that was a very bad idea because ICL’s server would only return between one and two entries per second and it would therefore take a very long time to populate the user display. This, it seemed, was the state of the art for directory servers; you could have lots and lots of entries in them, but they serviced search requests very slowly. The project was scrapped soon after and I moved on to other things, but I didn’t forget that moment when that very proper British engineer looked at me like I was barking mad because I expected his directory server to return search results quickly.

Fast-forward eighteen years, and I’m a principal at the company that develops and supports OpenLDAP, a directory server which has the distinction of being the fastest LDAP (a derivative of X.500 directories) directory server on the planet. Not only is it capable of returning hundreds of thousands of search results per second using garden-variety server hardware, it scales to billions of entries in a single server while maintaining a linear response profile. The speed, scalability, and linear response profile of the server invites uses we didn’t even dream about when I first came into contact with directories. At its core, OpenLDAP is simply an object-oriented database that’s organized hierarchically. It’s not column-oriented and it doesn’t do joins. It delivers on promises made in the early eighties for a database that could solve problems that are intractable with conventional row-and-column oriented database systems. Simpler data retrieval applications- most web applications, for example- no longer need to suffer the performance and complexity penalties imposed by SQL parsers. Instead, they can issue LDAP search requests that can be satisfied in 600 microseconds or less with modern commodity hardware.

This is not just a boast. There’s been a generational change in object-oriented database technology, and it’s happened right under our noses, almost without us noticing. Sure, we can now run many thousands of authentications per second, but it also suddenly becomes reasonable to run permission checks in real time instead of at application startup or login. Web service requests can be serviced more quickly and voicemail messages stored and retrieved more efficiently. MMO games can run more smoothly, without delays. It’s time to re-think our database technology choices and take advantage of the opportunities presented by this oft-ignored and underutilized technology.

137 views0 comments

Recent Posts

See All

The Achilles Heel of LRU Caches

Ever since we released LMDB, our advice to software designers has been "don't do application level caching. Let the kernel handle it for...

Additions and Subtractions

Symas is pleased to announce that its OpenLDAP builds, which have long been available for the x86_64 architecture, are now joined by a...

OpenLDAP 2.6 Long Term Support Announcement

The OpenLDAP Project is pleased to announce the promotion of OpenLDAP 2.6 from Feature Release to Long Term Support (LTS), effective as...

Comments


bottom of page