3 ms·
Compound documents are not only for reducing network latency. It also about giving your clients a nice single point of entry and not having them call 5 endpoint
by bni 5y ago
Compound documents are not only for reducing network latency. It also about giving your clients a nice single point of entry and not having them call 5 endpoints to get what they need.
- psturgeon 5y agoIt sounds nice at first, but if you have 5 completely different resources then why would you want to squish them into one? This taints highly cacheable data with frequently changing data, and slows down everything all at the same time. Also when 5 becomes 8, 9, 10.... entire APIs come grinding to a halt because people are trying to download the entire database in one single request instead of just making a few calls.