Database Proverb: Patience is NOT a Virtue

Written by newsletters | Published 2021/10/03
Tech Story Tags: data-science | database | hackernoon | newsletter | business-strategy | relational-database | email-newsletters | security

TLDRIn 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.via the TL;DR App

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.


Written by newsletters | Official account for all of the HackerNoon newsletters. www.hackernoon.com/u/newsletters
Published by HackerNoon on 2021/10/03