REST payload max size?

Rest

Rest Problem Overview


We are thinking of using a REST interface for communication between internal apps. App A will have to pass a fair bit of data representing a financial portfolio to app B. Is there any limit to the amount of data that can be passed using a REST API given that REST is implemented using HTTP? I wasn't sure if another protocol (ie: RMI) should be used with a large data set.

Rest Solutions


Solution 1 - Rest

No, it's pretty much up to the server implementation if there's any such limit.

There's a limit on the size of a URL (if you wish to put large amounts of data on the URL, like with a GET), but no defined limit for a POST or PUT.

Solution 2 - Rest

As Will Hartung said, there is no limit in the standard (RFC 2616). But every implementation has its own limits. A few examples:

These implementation limits are usually just the default configuration values, and can be changed to larger ones if required.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMarcus LeonView Question on Stackoverflow
Solution 1 - RestWill HartungView Answer on Stackoverflow
Solution 2 - RestbortzmeyerView Answer on Stackoverflow