paint-brush
Database Proverb: Patience is NOT a Virtueby@newsletters

Database Proverb: Patience is NOT a Virtue

by newsletters October 3rd, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In a world of technological abundance, it can be quite a challenge to pick the right database. Whether you are building an application from scratch or expanding the functionality of the existing app, your choice of DB can either make it or break it. From performance to programmability, the right database will not leave you waiting on its latency.
featured image - Database Proverb: Patience is NOT a Virtue
newsletters  HackerNoon profile picture

Photo by nega on Unsplash


In a world of technological abundance, it can be quite a challenge to pick the right database.


Whether you are building an application from scratch or expanding the functionality of the existing app, your choice of DB can either make it or break it.


From performance to programmability, the right database will not leave you waiting on its latency.


This is significant because unnecessary waiting turns patience from virtue into foolishness.


History of EDB


In the past, the term ‘embedded database’ (EDB) was used to describe a database system that existed as part of an application’s code.


Today, an ‘embedded DB’ refers to when a database lives in your app and is synced with the same server. Meaning, that if your application is running in container/server A (for example), the database will also run in this location.


Therefore, all of the database queries and updates that need to be performed are local. Structurally, they may be relational databases or non-relational databases.


EDB Features


EDBs come complete with many advantages, including:


  • Reduced latency;
  • Network I/O load from network calls between the application and the database;
  • Maximizing the potential of RDBMS features;
  • Facilitating data export in a flexible manner;
  • Granting access to your processed data to external clients;
  • Hiding a database, since it’s functionally invisible to the users.


To Embed or not to Embed


Embedded databases are ideal for mobile applications for a plethora of reasons.

The reduced latency in EDBs leads to faster data access providing a superior user experience.


Furthermore, having offline access can come in handy. This includes instances when your application can afford to store data locally without transmitting it across the network.


Many people have used these types of databases, especially in organizations working with aid and relief initiatives (such as refugee camps). Working in refugee camps without infrastructure or a cell phone network is quite a challenge from a technical standpoint.


Thanks to the capabilities of embedded DBs, organizations who employ EDBs can have their workers go offline (to collect data on sanitation or health for example) and then put all their data together using the local WiFi. It's as simple as that.


Moreover, one of the biggest challenges that developers have when they're creating mobile apps is keeping the local data in sync with whatever's on the server. In this case, embedded databases eliminate the latency of having to communicate with the server all of the time.


Wrapping Up


An embedded database is the right choice when your application calls for quick data processing. This stand-alone solution happens to be elegant, sparing you annoying lags down the road.


Subscribe to HackerNoon’s newsletters via our subscribe form in the footer.