DSpace statistics on a CDN

38 views
Skip to first unread message

Guillermo Fernández

unread,
May 4, 2023, 11:22:46 AM5/4/23
to DSpace Community
Hi,

We are planning to incorporate a DSpace installation into a CDN (Content Delivery Network) to optimize are distribute the bandwitdh consumption of our infraetructure.

The views, downloads, ans some search statistics registered with Solr are very important for us.
So to use cache servers in front DSpace we must find a way to keep the statistics updated.
At de cache servers we could programma every extra call direct to DSpace or Solr to fire the usage event.
Please note that we are talking about cache servers and not just proxies.

For exmaple, we want to cache file archives (bitstream) and then in future request just server de archive from the cache servers and call DSpace/Solr only to be aware and update the statistics.

There is an API o some way to achive it?

Thanks in advance!
Guillermo

DSpace Community

unread,
May 5, 2023, 12:28:42 PM5/5/23
to DSpace Community
Hi Guillermo,

All actions in DSpace 7 are possible in the REST API.  So, yes, it's possible to send "view" events (which generate those view stats) to the REST API.  See the docs at https://github.com/DSpace/RestContract/blob/main/statistics-viewevents.md

In general, with DSpace 7, you can "discover" what REST API calls are being made by simply using the User Interface. Everything it does generates a REST API call, and those can all be seen in your browser's DevTools (see the "Network" tab).

Tim

Reply all
Reply to author
Forward
0 new messages