At Sun, 15 Jul 2012 19:35:31 +0200, Richard Braun wrote: > > On Sun, Jul 15, 2012 at 06:39:05PM +0200, Neal H. Walfield wrote: > > I'd encourage you to use a more self-describing data structure. In > > the very least, please consider a version number and a bitmask > > indicating which fields are valid. > > What about versioning the call itself, e.g. vm_cache_statistics1 etc.. ?
In this case, I guess it doesn't make a big difference. But, in general, you could have the caller provide a list of versions that it understands and allow the server to choose the best version from the intersection of that list and what it supports. This prevents the client from having to make O(N) calls. Neal