If a server has 1,000 pids, the JSON-encoded full cost map could take >30
megabytes. 10,000 pids -- ouch!
 As a result, a server with a large number of pids may be reluctant to
return the full cost map -- or maybe even the full network map.

I see several possible solutions:

1. Require compliant servers to give the full cost map, no matter what it
takes. If that stresses the server, tough! Don't define that many pids.

2. Make the full cost map service optional.

3. Add an E_REQUEST_TOO_LARGE (or whatever) error code to section 7.4.3,
and allow a server to return that if a request is excessive.

4. In the ALTO spec, document that a server may return the existing HTTP
error code "408 -- Request Timeout" if the cost map is too large.

#4 is the easiest, and in any case, we can't stop a server from returning
that status code. But if the server does, the client can't tell if it's a
permanent rejection or just a transient glitch. #2 & #3 make it clear that
the server simply won't return the full cost map, period.

        - Bill Roome


_______________________________________________
alto mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/alto

Reply via email to