Skip to main content

IneryDB Architecture

IneryDB forms a critical component of the decentralized database management ecosystem, leveraging the robust capabilities of the Inery Distributed Ledger System (IneryDLS) as its backbone. This chapter explains how IneryDB processes and secures data within its ecosystem, using a typical database system as an illustrative example

Prerequisite

Familiarity with IneryDLS.

IneryDB is second-layer DBMS tool built on top of IneryDLS, enabling a structured, secure, and efficient logic for managing data. It is designed to ensure data integrity, security, and scalability for decentralized applications.

IneryDB Layers

The architecture of IneryDB is structured into three key layers, each designed to handle a specific aspect of data management and processing with precision and reliability.

Value Contract Layer

This foundational layer governs how database operations are executed. It provides a set of predefined Value Contracts that users can customize by adjusting parameters and logic to fit specific application requirements. These contracts handle tasks like user registration and database updates, while enforcing strict validation rules, such as schema consistency and authorized access control. By doing so, this layer ensures data accuracy and prevents unauthorized actions at every step.

Value Contract Layer

Service Layer

The Service Layer acts as the operational middleman between the database logic and the tools users interact with. Built on a modular Node.js framework, it supports high-performance communication and data handling. This layer processes requests, translates them into actions for the Value Contract Layer, and ensures secure data transfer using advanced encryption techniques like AES for symmetric encryption and RSA for asymmetric encryption. Its scalable design makes it adaptable for both small-scale and enterprise-level applications.

Service Layer

GUI Layer

The GUI Layer serves as the user’s gateway to IneryDB, providing an intuitive interface for managing decentralized databases. Delivered as a browser-based web application, it can be hosted locally or on remote servers, offering deployment flexibility. The GUI simplifies complex operations, such as running queries, managing cryptographic keys, and executing data updates, through an accessible and visually rich interface. It includes tools for visualizing data relationships and monitoring database activity, making it easier for users to manage their systems effectively and efficiently.

GUI Layer

Each layer plays a defined role, working together to deliver a secure, flexible, and user-friendly decentralized database management experience.

IneryDB Data Flow

The interaction between these layers ensures a clear and secure data flow:

  1. Data is first structured and encrypted at the client side before being processed by the Proxy Server.
  2. The Proxy Server interacts with the Value Contracts in the IneryDLS to record, update, or retrieve data.
  3. The results are then made accessible via the GUI, enabling real-time management and visualization.

IneryDB Key Features

  • Structured Storage: Data is organized in strictly defined schemas. Once defined database structue in Value Contract, data instances must be defined with every parameter defined in structure.
  • Flexible Database Support: The architecture is designed to support the adoption of any database structure needed, including relational, document, wide columnar, and key-value databases. Value Contract Development enables different definition of database logic that can model the composition into each of commom noSQL or hibrid SQL model
  • Low-level Data Types: IneryDB storage is precisely optimized to the specific needs of each application, resulting in faster query execution and more efficient use of resources.
  • Multiple Encryption Layers: Data undergoes multiple encryption steps before entering the IneryDLS layer, below illustration explain the flow of data encyption in tranzit/