I have my system which receives data from another service and then I show the data to my users. I'd like to store an ID or a link to the data. Then UI will go for the data using the ID/link.
If we were to use HATEOAS, we'd go with links, so:
- Poll the data from that service
- Store links to the resources
- When UI opens - it gets the links from my DB and follows those links
But if service location changes or the URL format changes - we get broken links. Of course we can go with hacks like nginx URL rewrite, but this isn't pretty. Anyone has a good solution except for abandoning HATEOAS in this case?