dry-monkey-93718
06/07/2022, 4:01 PMwide-carpet-65149
06/07/2022, 4:09 PMdry-monkey-93718
06/07/2022, 4:17 PMwide-carpet-65149
06/07/2022, 5:09 PMlimited-cartoon-72739
06/08/2022, 5:07 AMdazzling-author-99268
06/08/2022, 6:43 AMdry-monkey-93718
06/08/2022, 7:02 AMwide-carpet-65149
06/08/2022, 8:55 AMwide-carpet-65149
06/08/2022, 8:59 AMwide-carpet-65149
06/08/2022, 9:01 AMhelpful-mechanic-54614
06/08/2022, 9:29 AMwide-carpet-65149
06/08/2022, 10:04 AMdry-monkey-93718
06/08/2022, 10:13 AMI think that is a poor idea that I keep seeing people suggest.umm, 😄
Consumers of an API are like users of a product. They do not dictate all the usage.I think this is at the heart of the difference between the schools of thought. For me, users of the API and their needs come first. As with any product, the makers should not create bloat or cater to all wishes of every single user. PS: Typically the user of an API is the other team/frontend not the end user. In some cases, the user and the end users are the same (API products). There I'd say going API first is pretty much essential. Even when they're not, a lot of the times this has a tangible effect on end user's experience. For example, I often see frontend make multiple calls to fetch separate related pieces of information from different services/apps, this causes parts of the application to feel wonky or slow down/error out in weird ways sometimes @wide-carpet-65149 you might really like graphQL kind of an api layer.
wide-carpet-65149
06/08/2022, 10:28 AMwide-carpet-65149
06/08/2022, 10:36 AMdry-monkey-93718
06/08/2022, 10:36 AMIt makes sense in my mind to merge in frotnend, not in backend or single API.Multiple calls, especially when done back to back (one call to fetch current user and then next to get related information), make your UI look slower. If you have an enterprise app, probably that won't matter much as the deal has happened at a much higher level than actual users. For consumer apps, it's very important.