I am considering creating a RESTful web service which will return a lot of data. What do people think is the maximum size of xml document that should be returned in one get from a web services API? I would estimate the size of the result set to be 100Mb and time to produce this would be about 2h.
How much time is a reasonable maximum for the server to be calculating a result set before returning the document?
The web server is Apache using django on mod_python.
The web service would only be called once or twice a day.
Are there any special configuration options I should enable to make this work on the Apache/mod_python/django stack.
The maximum data payload size for requests to this endpoint is 128 mb. The maximum rate limit is 60 files per hour per account (aka profile).
The direct file upload API supports files up to 50MB in size and sends all the binary data to the Box API in 1 API request. The chunked upload APIs support files from 20MB in size and allow an application to upload the file in parts, allowing for more control to catch any errors and retry parts individually.
In this example we set the maximum request size to be 1GB. Secondly which one is better option file or send JSON data to rest API? If you are planning to send large request payloads I would recommend you using the multipart/form-data content type for the request instead of JSON.
This is really a constraint of HTTP and nothing to do with REST. Personally, I regularly download content that is hundreds of megabytes over HTTP and don't have any problems.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With