|
|
|
|
|
by liamkinne
1001 days ago
|
|
I once hade the unfortunate experience of building an API for a government org where the data changed once a year or when amendments were made which happens very infrequently. The whole data set could have been zipped into a <1MB file but instead a “solution architect” go their hands on the requirements. We ended up with a slow API because they wouldn’t let us cache results in case the data had changed just as it was requested. And an overly complex webhook system for notifying subscribers of changes to the data. A zip file probably was too simple, but not far off what was actually required. |
|
If you want to get really fancy, offer an additional webhook which triggers when the file changes - so clients know when to redownload it and don't have to poll once a day.
...or make a script that sends a predefined e-mail to a mailing list when there is a change.