On 17/04/2012 13:02, Fabio Martelli wrote: > Il giorno 17/apr/2012, alle ore 12.45, Colm O hEigeartaigh ha scritto: > >> How about supporting "bulk" operations via the REST API? For example, >> creating/deleting/reading a set of users/roles/resources with one operation? > Wow, you are right. > Probably this is not feasible and, I'm sure, not applicable. > > A solution could be to implement this feature part on the server (REST > controller) and part on the client library. > The client library could read the input and ask for the operation on the > server. > Probably, to improve the performance, the server could accept request for > more than one entry per request and the client could implement the feature > with a multithreading approach.
There are a couple of underlying facts: 1. Bulk operations are usually applied for huge number of entries, hence barely provide UserController.create(List<UserTO>) is not enough 2. Upcoming rich client library (already on roadmap) could be provided with some multithreading, error control and reporting features Hence, I agree we should put something like bulk in the roadmap, but I am also with Fabio: this should be implemented very carefully and dividing responsibilities either on the server and on the client side. Regards. -- Francesco Chicchiriccò Apache Cocoon PMC and Apache Syncope PPMC Member http://people.apache.org/~ilgrosso/
