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
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
  1. DZone
  2. Data Engineering
  3. Databases
  4. FoundationDB: Future of the Database Landscape

FoundationDB: Future of the Database Landscape

Have you ever wondered which database will dominate the industry?

Noorain Panjwani user avatar by
Noorain Panjwani
·
Jan. 25, 19 · Opinion
Like (5)
Save
Tweet
Share
7.94K Views

Join the DZone community and get the full member experience.

Join For Free

Data is the new oil. And the oil well of the tech industry is a database. No matter what application or platform you are trying to build, you will definitely require a database.

There are tons of databases out there. Every week we hear about a new database to hit the open source world. In all this madness, have you ever wondered which database will dominate the industry? I have. And if you’re as excited as I am, you must be wondering what’s gonna come out on top. But before we get into that, let’s understand the current database landscape.

The Trend

The growing trend, it seems, is specialization. Today we have databases that solve niche problems like working with time series data or for search. You are supposed to glue these pieces together, pretty much yourself. For tiny startups like ours, you probably do not have the resources to adopt such diverse architectures.

There is another breed of multi-model database coming up like ArangoDB and Cosmos DB to solve this problem. Their idea is simple. Have a single database that supports different data modeling techniques (like document, graph, etc.). This gives an architect unprecedented flexibility to model the application. Since the database is multi-model, it can fit in a variety of use cases.

This might sound like the answer to all our prayers, but there is a dark side to it. Such database architectures are extremely opinionated. That is, it might not be specialized for any particular use case. The focus is more on being general purpose.

Such a trade-off is usually acceptable for most of us. But in my experience, at some point, we all need to specialize. Scale isn’t a generic process. It’s highly customized. The tech that works for one app wouldn’t necessarily work for another app of the same genre. Here’s a great read on how to build scalable apps.

The need for specialized databases arises due to varied types of workloads. Most IoT use cases, for example, are write intensive. The writes must have low latency. The reads are usually an aggregation with respect to time. It makes sense to store data points in a chronological order to boost query performance. If we built a database for precisely this need, the result would be a time series database.

So basically, going forward with a multi-model database would eventually lead to migration in the longer run. Migration to a specialized database helps saves cost and increases performance.

Now that’s a pickle. What’s the right path forward? Who shall finally get the throne in the kingdom of databases?

The Return of the Key-Value Store

“Wait. Why are we talking about a key-value database?” is a question one may ask.

Most of the database out there are basically modeled on top of a key-value database. That’s the degree of flexibility a key-value store has to offer. Be it a relational database like MySQL or a graph database like Dgraph.

You can easily make a document database like MongoDB on top of a key-value database. Each unique field of a document would be mapped to a key. To know how this works, you can check out this data modeling guide.

So where does that bring us?

You can customize a key-value database to suit your modeling needs. Since it's only set and get operations under the hood, a wide range of performance tuning is possible. Also, we all know that key-value databases are some of the most scalable databases in the world.

A single database can pretty much solve all your specialized database needs, but what's the catch? Why aren’t people doing it already? Let’s try and answer that.

In order for any of this to work, we would need a distributed database that can store keys in an ordered fashion. Also, we would need transactional capabilities to make sure our objects (in case of a document database) are consistent.

FoundationDB: The Rising Star

Image title

FoundationDB is a lexicographically ordered, transactional key-value database. It’s fully ACID compliant, which means that our database (data and indexes) will always be in a consistent state.

This gives us unbelievable power. You can implement various high-level constructs (like indexes) the way that is best suited for your need. You can build special data structures that would speed up graph traversals.

“That sounds great! But wouldn’t I have to build everything myself then?” asked the impatient architect.

Sure, not everyone has the time or the will to model a database. And that’s where FoundationDB comes with a revolutionary concept — FoundationDB Layers.

“FoundationDB decouples its data storage technology from its data model. FoundationDB’s core ordered key-value storage technology can be efficiently adapted and remapped to a broad array of rich data models. Using indexing as an example, FoundationDB’s core provides no indexing and never will. Instead, a layer provides indexing by storing two kinds of key-values, one for the data and one for the index.” — extract from the FoundationDB Docs.

The “layer” mentioned here is like a script running beside the database which essentially implements a data model on top of it. For example, you might have a layer implementing the MongoDB interface, while another layer could expose a MySQL layer.

Moreover, since FoundationDB is fully open source, the community is bound to come up with all sorts of Layers for various applications.

Summing Up

FoundationDB takes the database race to a whole new level. I can’t say it’s the perfect database since it’s underlying architecture isn’t well-known yet. But it definitely is in the right direction.

The same database can now act as multiple different kinds of databases specialized for different use cases. This gives the user's super high flexibility and performance while maintaining operational simplicity.

And with the way tech is evolving, you don’t even need to learn how each database works in order to use it. Tools like Space Cloud provide a neat abstraction to fully automate your backend. So essentially, you can extract every ounce of performance while keeping the learning curve flat.

FoundationDB Layers offer a good starting point for those starting afresh. It’s easy to customize for the performance hungry people. That one database will suffice throughout the evolution of your product; it’s truly your lifetime companion!

Did this article help you? What database do you use? What do you think is the king of databases? Share your thoughts below. And if you want help on architecting your apps, you can always reach out to Noorain on LinkedIn.

Database Relational database FoundationDB Landscape (software)

Published at DZone with permission of Noorain Panjwani, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • ChatGPT: The Unexpected API Test Automation Help
  • Express Hibernate Queries as Type-Safe Java Streams
  • Select ChatGPT From SQL? You Bet!
  • Mr. Over, the Engineer [Comic]

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
  • +1 (919) 678-0300

Let's be friends: