SignalK / specification

Signal K is a JSON-based format for storing and sharing marine data from different sources (e.g. nmea 0183, 2000, seatalk, etc)
Other
91 stars 68 forks source link

REST requests for multiple values #474

Closed sbender9 closed 6 years ago

sbender9 commented 6 years ago

I think we need a way to request a full tree via the REST api for a subset of values.

This would be very useful for something like my Apple Watch app. Downloading the full tree on a boat like mine or making multiple request for many values is very expensive and slow.

It does not seem like there's a standard way to do this via REST, so I'd appreciate any input. Otherwise I will come up with something and make a proposal...

tkurki commented 6 years ago

Instead of cooking up something homegrown we should go with the standard solution: HTTP/2. Multiple requests with minimum overhead is one of its main use cases: HTTP/2 multiplexes multiple requests and responses over one persistent tcp stream, doing away with the major source of overhead, setting up and tearing down individual tcp connections.

With this approach we do not need to devise something new, just use the existing REST stuff.

https://github.com/spdy-http2/node-spdy

sbender9 commented 6 years ago

Agreed and PR submitted to add support for http/2 to node server.