States & Subscriptions Storage (sts)
Description
Store states and subscriptions to state changes of users of the system and SIP users.
Notifies subscribers when the integral states of accounts change. Each entry is recorded for a period of time and renewed periodically.
Divided into microservices by domain. Data is automatically synchronized between sites serving the domain.
Reserved in Active-Passive mode. Scaled by domain tree partitioning.
Code |
|
Mode of operation |
|
Backup mode |
|
Types of sites |
|
Layer |
|
Placement |
|
Saving and restoring state on reboot |
|
appendix |
|
Own storage |
|
Limitations
-
State change events generated by the role for message brokers duplicate data across all sites where the domain is served. At the moment when sites are inaccessible to each other, the domain data in different sites' repositories may differ. This also leads to duplicates in the database, where events are stacked by recipients of messages from different sites, provided they have the same connection settings.
-
Sending state change events to the subscriber is done by the instance of the site that accepted and processed the subscription.
Parameters
Configuration example
The configuration is managed in an application available to master domain administrators. The application hides the full content of the configuration, but it is nevertheless accessible via the API.
The configuration contains a section to describe all instances of all roles. Parameters are defined for each specific role instance.
{
"name": "statestore1",
"roletype": "sts",
"iface": "eth0",
"group": 11070,
"order": 2,
"include_domains": [
"dev.rootdomain.ru"
]
}