Skip to main content

Application Data Storage Architecture

The application data in HAP includes modules such as worksheets, workflows, roles and permissions and so on. For application data storage, HAP chooses MongoDB, relying on its flexible storage structure (Bson), which greatly facilitates storage and retrieval performance.

The data of each module is stored in a separate database (You can also deploy an independent database cluster for each database. View more details in Multi-cluster Storage for Application Data). In addition to the separate database, the application structure data of the same module (non-worksheet) are logically isolated (based on the application id). There is a database table that corresponds to each worksheet in the application physically. Based on the visual field definition capability of the worksheet, drag and drop to dynamically adjust the database table structure. At the same time, the physical isolation of each table makes it more convenient to add necessary field indexes to improve the retrieval performance.