On Tuesday 14 July 2009, Klaus Kaempf wrote:
* Cornelius Schumacher
[Jul 13. 2009 18:03]: If there is data in the tag itself it makes parsing a bit harder. So I would suggest to just use a series of value tags with the datetime as attribute:
<value dateTime="2009-07-13T18:01Z">8.9377540389e+08</value> <value dateTime="2009-07-14T18:01Z">9.9377540389e+08</value>
This raises the general question if XML and REST are good encapsulations for such data. I very much doubt it.
The resource should be used to configure and manage the monitoring service. Transfering (possibly) huge amounts of data should be done by other means.
This shouldn't be a general problem. To reduce the amount of data, it can be
compressed. It's possible to do this transparently.
Or it could be transferred in an alternative format like JSON or something
else which is more efficient.
--
Cornelius Schumacher