Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the maximum size of document to return from a REST API?

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.

like image 876
Mark Avatar asked Oct 28 '09 13:10

Mark


People also ask

What is the maximum size of REST API response?

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).

What is the maximum file size for API?

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.

How much data can we send through REST API?

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.


1 Answers

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.

like image 114
Darrel Miller Avatar answered Sep 18 '22 19:09

Darrel Miller