What is the maximum document size for returning from a REST API?

I am considering creating a RESTful web service that will return a large amount of data. What do people think is the maximum size of an XML document that should be returned when retrieving the web services API? I would estimate the size of the result set to be 100 MB, and the time to create it would be about 2 hours.

How much time is a reasonable maximum for a server to compute a result set before returning a document?

Apache web server using django on mod_python .

The web service will only be called once or twice a day.

Are there any special configuration options that I have to enable in order to do this work on the Apache / mod_python / django stack.

+4
source share
3 answers

This is really a limitation of HTTP and nothing to do with REST. Personally, I regularly download content in hundreds of megabytes over HTTP and do not experience any problems.

+5
source

If your web service is designed to work with very large documents, do not worry about the maximum. However, if you are using a combination of small and large documents, you might consider using some form of resume along with the URL for the complete document. Your main task should be to properly configure the web server to handle this, since serving a long document binds the connection over a longer period of time. The actual maintenance process is not very intensive for the CPU.

The REST model does not impose size restrictions, and some use it to serve .ISO images of CDs and DVDs. DVD images are 2-6 gigabytes.

+2
source

According to this: http://lithosphere.lithium.com/t5/Growing-Successful-Communities/REST-API-search-results-older-than-lithium-search-results/mp/3882%3Bjsessionid=26786A8E8B534275FE29DDC1B2B9F4D4

and this: http://confluence.atlassian.com/display/DOC/Prototype+REST+API

The maximum size is 50 unless you set a default value. If you do, it will be the limit of 1000 that you can set.

This seems consistent in several applications, so you can accept this as an agreement.

I would say that some testing needs to be done, but if it is only twice a day, then go to the maximum level and work if you want / want.

-one
source

All Articles