Endpoint Register service (EPR) is the Kaa platform component that keeps record of all endpoint registrations within a solution, as well as their associated key/value attributes (called metadata).
This service provides REST API interfaces to manage endpoints and endpoint metadata keys.
EPR broadcasts endpoint (EP) lifecycle events, such as registration or deletion of an endpoint, as well as any EP metadata update.
EPR persists all EP-related data to MongoDB.
EPR supports a number of interfaces to perform its functional role. The key supported interfaces are summarized in the following diagram.
For inter-service communication, Kaa services mainly use REST APIs and messaging protocols that run over NATS messaging system.
EP and metadata management
EPR provides a REST-based interface to manage endpoints and their metadata. This interface allows registering endpoints, updating EP application version and EP metadata, and much more.
For details about filtering EPs refer to EP filters documentation.
EP lifecycle and metadata events
EPR broadcasts the following events:
- Endpoint registered/unregistered, EP application version updated. See 9/ELCE.
- Endpoint metadata updated. See 15/EME.
Endpoint connectivity events
EPR listens to endpoint connected event defined in 9/ELCE. When an endpoint connects to the platform, EPR compares their reported application version with the stored one, updates it in the database if there was an update, and broadcasts an endpoint application version updated event.
EPR uses a REST-based credential management API for provisioning initial tokens for the newly created endpoints.
EP filter events
EPR broadcasts the following EP filter events as defined in the 18/EFE:
- Endpoint filter activated/deactivated
- Endpoint matched/unmatched filter