Skip to content

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:

  1. The user sends to its managing server that it wants to be subscribed to X
  2. The managing server subscribes to the resource on the resources server (which tests permissions and may deny the request)
  3. 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

Loading

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"
Loading

Clone this wiki locally