-
Notifications
You must be signed in to change notification settings - Fork 0
subscribing
Äkwav edited this page Apr 9, 2019
·
6 revisions
You can subscribe to every resource in the Network, if you have permission to do it.
Subscribtions are directly attached to the Resource itself usually as a List of serverIds inside the Access attribute.
If eg an user wants to subscribe to another users profile following steps happen:
- The user sends to its managing server that it wants to be subscribed to X
- The managing server subscribes to the resource on the resources server (which tests permissions and may deny the request)
- The managing server clones the resource and adds a detailed Access object to the resource wich contains the userId
graph LR;
USER-- subscribe -->managingServer
managingServer-- cloneAndSubscribe-->resourceServer
resourceServer-- resource-->managingServer
Now updates will be forwarded to each user like this:
graph LR;
OWNER -- changing Command -->resourceServer ;
resourceServer -->managingServer ;
resourceServer -->anotherManagingServer;
managingServer -->user;
managingServer -->anotherUser;
managingServer -->alsoAnInterestedUser;
anotherManagingServer -->yetAnotherUser;
resourceServer -->userOnTheResourceServer;
style user stroke:#99f,stroke-width:2px
click user "https://git.coflnet.com/ekwav/cloud/wikis"