# 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: 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:

```
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>
```

The question should be specific, self-contained, and written in natural language.
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.
