DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
Securing Your Software Supply Chain with JFrog and Azure
Register Today

Trending

  • Integrating AWS With Salesforce Using Terraform
  • 10 Traits That Separate the Best Devs From the Crowd
  • Knowing and Valuing Apache Kafka’s ISR (In-Sync Replicas)
  • Manifold vs. Lombok: Enhancing Java With Property Support

Trending

  • Integrating AWS With Salesforce Using Terraform
  • 10 Traits That Separate the Best Devs From the Crowd
  • Knowing and Valuing Apache Kafka’s ISR (In-Sync Replicas)
  • Manifold vs. Lombok: Enhancing Java With Property Support

Reviewing LevelDB, Part I: What is This All About

Oren Eini user avatar by
Oren Eini
·
Mar. 21, 13 · Interview
Like (0)
Save
Tweet
Share
2.44K Views

Join the DZone community and get the full member experience.

Join For Free

leveldb is…

a fast key-value storage library written at google that provides an ordered mapping from string keys to string values.

that is the project’s own definition. basically, it is a way for users to store data in an efficient manner. it isn’t a sql database . it isn’t even a real database in any sense of the word. what it is is a building block for building databases. it handles writing and reading to disk, and it supports atomicity. but anything else is on you (from transaction management to more complex items).

as such, it appears perfect for the kind of things that we need to do. i decided that i wanted to get to know the codebase, especially since at this time, i can’t even get it to compile sad smile . the fact that this is a c++ codebase, written by people who eat & breath c++ for a living is another reason why. i expect that this would be a good codebase, so i might as well sharpen my c++-foo at the same time that i grok what this is doing.

the first thing to do is to look at the interface that the database provides us with:

image

that is a very small surface area, and as you can imagine, this is something that i highly approve of. it make it much easier to understand and reason about. and there is some pretty complex behavior behind this, which i’ll be exploring soon.

LevelDB

Published at DZone with permission of Oren Eini, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Trending

  • Integrating AWS With Salesforce Using Terraform
  • 10 Traits That Separate the Best Devs From the Crowd
  • Knowing and Valuing Apache Kafka’s ISR (In-Sync Replicas)
  • Manifold vs. Lombok: Enhancing Java With Property Support

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com

Let's be friends: