2011-04-05, 18:41
carmenm Wrote:i am now playing with the new json. It is really really great!
I especially love the new introspect and the error responses!!!
Now time for the questions:
-VideoPlaylist.GetItems : is there a way to get the Library.Id if there is one? That could be very useful if we then want to do something like VideoLibrary.GetMovieDetails
-about sending multiple request a the same time. If i take the example of VideoLibrary.GetMovies and VideoLibrary.GetTVShows. WOuld it make responses time shorter if sending both at the same time ( i am taking that example as i suppose they access the database, and that you say in introspect that cast and set may make response time longer)
Thanks a lot for that big update. It helps a lot while developing.
If you send two requests at the same time they will be done in sync, they will have less overhead (as you only have one httpheader for both requests). So it depends a bit on your needs.
For example the webserver can execute more than one request at a time so if you send A which takes 1 minute and B which takes 30 s, doing that in sync will take 1min and 30s. if you send them seperate with extra overhead it will take roughly 1 min in total for both.
So consider it as transactions in normal databases, if you need them to be in sync use that feature, otherwise you can do them at the same time. As said, if overhead is an concern it can also be useful (getmovies + gettvshows return so much data overhead is of no concern). Say you want time of playback you can bundle that in with something else as the return is almost the same as the overhead probably