jspsych / datapipe

Send data from your behavioral experiments to the OSF. Born-open data as a service.

Home Page:https://pipe.jspsych.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add simple logging of API requests per experiment

jodeleeuw opened this issue · comments

Log number of requests per experiment for each API endpoint for some basic health monitoring. This should help us detect where a problem is if there is a sudden surge in spam, for example.

From experience (and sorry piping in - I've been mostly a fly on the wall) you will hugely benefit from rate limiting. E.g., it's good to monitor requests but better if you can set, for an example, an hourly / daily limit based on ip address or another identifier.

thanks, @vsoch. I'll think about how to do this. The trick is that API calls are unauthenticated, so I guess it would have to be by IP... will open a different issue for this.