Non-relational data storage

Overview

User settings management subsystem uses the Redis distributed in-memory database from the Non-relational database management subsystem to store the automatically generated OTP-codes (One-Time Password) with Time-To-Live set for records according to Registry configuration.

The data is stored as a Hash-table with object segregation on ID prefix level (<keyspace>:<key>).

Data structures

channel-verification-codes

Storing the automatically generated OTP-code objects for user communication channel confirmation.

Code generation pattern
channel-verification-codes:{userId}/{channel}
Table 1. Description of the structure for OTP storing
Key Data type Description

id

String

Unique ID

otpData.address

String

User taxpayer’s ID code

otpData.verificationCode

String

OTP-code for confirmation