I have a set of complex data, which I use on various subdomains of my project. Data are static most of the time, it changes few times per year.
Currently, it's hardcoded in every project which needs it, but I am looking for a way how to make one "source of truth".
Of course, I can build another api.example.com service to provide those data, but I want to ask. Are there any drawbacks of using public repository on GitHub and accessing them via https://raw.githubusercontent.com/.../.../my_data.json
? I already saw some project provide (for example geo) data like this.
Data are fully public and of course I will do some kind of caching on consumer side, but am I missing something why this is not a good approach?