Re: CBOR Tutorial

>> On 31 Jan 2018, at 17:58, Leonard Rosenthol <lrosenth@adobe.com <mailto:lrosenth@adobe.com>> wrote:
>>  
>> CBOR is a great exchange format for “over the wire” data exchange.   It is not a good format for “off the web” exchange (IMO)
>> 
> 
> Primarily because its optimized for streaming and not random access.  
>  
> Random access is always a better model for data processing but assumes that you have all the data already present (as would you “off the web”).  However, when streaming across a network/the web, you don’t always have the option (yes, there is byte range requests but they aren’t supported in all modern network configs, eg. load balancers).

My understanding is that random access depends on the actual data model being encoded in CBOR?

If I understand correctly, in the bundling spec, the index can be parsed first, and gives you pointers to each individual request/response pair, which effectively enables random access. 
Random access is btw stated as an essential requirement for the packaging spec: https://tools.ietf.org/html/draft-yasskin-webpackage-use-cases-00#section-3.1.5 <https://tools.ietf.org/html/draft-yasskin-webpackage-use-cases-00#section-3.1.5>

Am I missing something?

Romain.

Received on Thursday, 1 February 2018 08:49:35 UTC