Embedded database
An embedded database is a database engine integrated with an application, typically running in the application’s process rather than as a separate database server.
Latency
An embedded database is a database engine that runs in the same process or memory space as the application using it.
- How it is used
- Deploys database access inside a Rust REST API to reduce request latency and measure colocation’s performance effect.
- How deep it goes
- Descends through connection setup, request handling, benchmarking, and latency distributions, but does not develop database internals.
- Examples
- Uses a SQLite-backed /hello endpoint, direct SQL queries, wrk output, and an eCDF comparing SQLite with PostgreSQL.
- What you can do after
- Apply it via Rust, Actix Web, SQLite, and wrk to build and measure a colocated database-backed endpoint.
Spring in Action, Sixth Edition
An embedded database is a database engine that runs within the application process or development environment rather than as a separately managed service.
- How it is used
- Supports local development and testing without a separately running database service.
- How deep it goes
- Explains dependency and configuration choices, then defers production deployment to external database properties.
- Examples
- Uses Flapdoodle embedded MongoDB and H2 in-memory databases, including fixed H2 naming for console connections.
- What you can do after
- Configure an embedded MongoDB or H2 database for development and testing, then point Spring Data MongoDB at production infrastructure.
Read how Spring in Action, Sixth Edition explains embedded database →
Also covered in
What to know first
- SQLSQL is a standardized declarative language for defining, querying, and manipulating data in relational database systems.
Related concepts
- Mnesiaincludes · Mnesia is an embedded Erlang database supporting in-memory and disk-based tables, transactions, indexing, sharding, and replication.
- SQLiteincludes · SQLite is a self-contained, serverless relational database engine implemented as a software library that stores and queries databases in files or memory.
- HSQLDBincludes · HSQLDB is an open-source relational database management system written in Java that supports embedded, server, and in-memory operation.
Questions about embedded database
What is embedded database?
An embedded database is a database engine integrated with an application, typically running in the application’s process rather than as a separate database server.
Which Manning books explain embedded database?
Latency and Spring in Action, Sixth Edition.
What should I know before learning embedded database?
Manning books that teach embedded database usually introduce SQL first.
What is the difference between embedded database and server-based datastore?
An embedded database is a database engine integrated with an application, typically running in the application’s process rather than as a separate database server. A server-based datastore is a database system that runs as a separate managed process.
What kinds of embedded database are there?
Kinds of embedded database include Mnesia, sled, SQLite and HSQLDB.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

