difference between in-memory and embedded databases
Asked Answered
G

2

9

I want to know if my understanding is correct :

embedded : databases which are up if my application is up and are down if my application is down. I am not referring the databases used in embedded space.

in-memory : databases could be on any server; irrespective of where my application is running. Just that, these uses main memory.

Gerianne answered 14/2, 2018 at 8:14 Comment(6)
The tags you included in the question explain the concepts quite properly IMO.Bryozoan
what's meaning of "tightly integrated" here?Gerianne
It means it's fully integrated in your application. It's ready to work with it and it might be difficult to port it to other application.Bryozoan
does it mean that database and application would run on same server ?Gerianne
I basically want to know if embedded DB is created when my application process starts and ends when my application process ends.Gerianne
It depends on what you consider to 'start' and 'end'. If you think in data, an embedded DB could remove its data when the application stops (an in-memory DB, for example) or when the application is uninstalled (more common).Bryozoan
R
10

Full disclosure: I represent the vendor of eXtremeDB.

Embedded databases have been around since at least the early 80's. db_VISTA, c-tree, btrieve, Empress are some of the most common from back in the day.

'Embedded database' has nothing to do with embedded systems. It simply means a database management system that is delivered to the programmer as a set of object code libraries that are to be linked with the application object code into an executable program image. In other words, the database functionality becomes part of the application itself, in the same address space. Embedded databases were used primarily for line-of-business applications in the 80s and 90s. It wasn't until the late 90s and early 2000s that embedded systems began to migrate to 32-bit architectures in sufficient numbers that database systems could be considered to be commercially viable. eXtremeDB was launched in 2001 as the first in-memory, embedded database system written explicitly for embedded systems. (8-bit and 16-bit systems do not have enough addressable memory to support a DBMS.)

An embedded database system can be either an in-memory database or persistent database (i.e. disk-based database).

An in-memory database system can be an embedded database system, or it can be a client/server database system.

A client/server database system can be an in-memory database system, or it can be a persistent database system.

As you can see, all the lines cross. You can have

  • client/server in-memory
  • client/server persistent
  • embedded in-memory
  • embedded persistent

And, you have have hybrids of all the above.

Rematch answered 16/2, 2018 at 19:12 Comment(0)
D
0

DBMS Architecture:

  • Client-Server model: distributed structure where the DBMS resides on a server and client applications access the database; the database is said in server mode.
  • In-Process model: a monolithic structure where the DBMS and the application run in the same process; the database is said in embedded mode.

DBMS Storage:

  • in-memory: a database management system that employs memory as data storage (and disk as backup), the database is said in-memory mode.
  • on-disk or persistent: a database management system that employs disk as data storage (and memory as cache).
Dora answered 14/9, 2022 at 15:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.