vendredi 6 février 2015

How to design a RESTful api with good performance


When designing RESTful apis, one of the rules is: "URI designates exactly one resource" , but in the real world we also like good performance and one thing to kill performance is the N+1 problem.


So how exactly are we supposed to avoid the N+1 problem without making more than one URI for the same resource /api/foos/?page=1 or /api/foo/1 where /api/foos/ returns a list of foos in order to get decent performance.





Aucun commentaire:

Enregistrer un commentaire