# Towards push notifications in OCIS

- Institution: CERN
- Department: HEP Computing
- Speaker: Jörn Dreyer
- Year: 2021
- Language: English
- Subjects: Computer science
- Source: [CERN](https://videos.cern.ch/record/3018780)
- Licence: [CERN](http://copyright.web.cern.ch)
- Who can watch: Tweens profiles and older (sources give no ratings; placed by Invisible Network from the source's own words)

To make clients pick up changes to a shared file the etag of all recipients root folders needs to be updated. The current implementation in OCIS jails shares into a `/Shares` folder to calculate a dynamic etag, based on all accepted shares. This multiplies the stat requests made to the underlying storage system by the number of shares on every propfind. By letting the storage registry cache the root etag of every storage id we can reduce this number to one stat request per storage. This cache would not only allow the gateway to calculate the etag for any path based on the mount point of storages: it would allow sharing the stat cache for all clients, the ocis instance could dynamically adjust the cache timeout to react to system load, and storages providers can push etag changes to the storage registry to prepare for push notifications to clients..

0:00:00 Slide 1

0:01:11 Slide 2

0:02:21 Slide 3

0:03:31 Slide 4

0:04:42 Slide 5

0:05:52 Slide 6

0:07:02 Slide 7

0:08:13 Slide 8

0:09:23 Slide 9

0:10:33 Slide 10

0:11:44 Slide 11

## Lectures

1. [Towards push notifications in OCIS](https://invisiblenetwork.ai/learn/cern/3018780/cee6b813e5ed), 12 min (CERN's player)
