> For the complete documentation index, see [llms.txt](https://hub.bsvblockchain.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hub.bsvblockchain.org/higher-learning/bsv-academy/bsv-network-topology/essentials-of-teranode-microservices-and-infrastructure-solutions/aerospike-key-value-store.md).

# Aerospike Key-Value Store

<figure><img src="/files/EtlKmYyiGXgRz0emcZmc" alt=""><figcaption></figcaption></figure>

A critical component of Teranode's architecture is the **Aerospike key-value store**, which plays a pivotal role in managing UTXOs and facilitating rapid transaction processing. Capable of handling an astonishing **one million transactions per second**, Aerospike's performance is largely attributed to its efficient data storage and retrieval mechanisms.

Key features of Aerospike include:

* **User-Defined Functions (UDFs)**: These allow developers to implement complex logic directly within the database, enhancing the processing capabilities of transactions. UDFs in Aerospike are written in **Lua**, a lightweight scripting language, enabling rapid execution of transaction-related operations.
* **Speed Optimization**: The performance of Aerospike is primarily determined by the speed of the underlying storage, particularly **NVMe disks**, which provide high throughput and low latency for data access.

The combination of these features positions Aerospike as a powerful tool for managing the high transaction volumes that Teranode aims to achieve.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hub.bsvblockchain.org/higher-learning/bsv-academy/bsv-network-topology/essentials-of-teranode-microservices-and-infrastructure-solutions/aerospike-key-value-store.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
