iotaledger / access-server

Apache License 2.0
14 stars 3 forks source link

[AXS-56] psDaemon redesign #71

Closed bernardoaraujor closed 4 years ago

bernardoaraujor commented 4 years ago

psDaemon is currently a standalone module.

its funcionality must be split into:

PAP Policy Loader must be placed in the following structure:

└── pap
    └── policy_loader
        ├── policy_loader.c
        └── policy_loader.h

Policy Updater is where the previous psDaemon thread must be placed. Its code must be placed in:

network/
└── policy_updater
    ├── policy_updater.c
    └── policy_updater.h

Visual Sequence Diagram of Policy Update Sequence: https://i.ibb.co/RYpsXNC/Access-Structure-v0-3-Policy-Update-4.png

JIRA: AXS-56

djordjeglbvc commented 4 years ago

Redisign is done in ff221294507ff5686b08d9e7b45c7838c1332316

A note: policy_updater module isn't implemented as a thread, only policy_loader. From implementation's point of view, it wouldn't make much sense to me to add a thread for policy_updater, so it is now PAP policy_loader communicating with policy updater through API calls (polling for policy update).

djordjeglbvc commented 4 years ago

This is resolved in #96