News for hackers. Stuff that matters.
Re:Ask HN: How do you version your data? by webmaven on Monday February 20, 2017 @02:52AM (#13685310)
Most data versioning approaches would help bulk consumers of the data, rather than through the API.

You could add a separate "changes" feed to help API consumers, or inline version info to the main API results.

Re:Ask HN: How do you version your data? by hbcondo714 on Monday February 20, 2017 @03:30AM (#13685489)
Thanks, was thinking about doing a new endpoint for changes too but wanted to see if this topic of data versioning pertains to this or not
Re:Ask HN: How do you version your data? by webmaven on Monday February 20, 2017 @12:53PM (#13689312)
It does, but I think what you're really after here is a mechanism for cache invalidation.

Check out PostgreSQL's LISTEN and NOTIFY:

https://www.postgresql.org/docs/9.6/static/sql-listen.html

https://www.postgresql.org/docs/9.6/static/sql-notify.html

A related HN discussion a few years ago: https://news.ycombinator.com/item?id=6689213