43
Views
3
Comments
Has REST API response maxReceivedMessageSize limitation ?
Question

Hello all,

I want to confirm related REST API as the following.
REST API limit maxReceivedMessageSize like SOAP ?
If yes, please let me know how to check the maxReceivedMessageSize for REST API.
I appreciate for any tips.

Thanks and Regards,
Zwe Mann

2021-11-12 04-59-31
Manikandan Sambasivam

In OutSystems, there isn't a direct configuration setting like maxReceivedMessageSize for REST APIs. However, you can limit the size of the payload by splitting large data sets into smaller chunks or pages. This can be achieved by implementing pagination for list responses. 

UserImage.jpg
Zwe Mann Oo

Hello Manikandan Sambasivam,

Many thanks for your supporting.
Currently, I want to pass large file's binary data as REST API responses.
For that reason, I created and tested with 1kB file responses JSON (around 637, 593 chars),
there is no problem until now. 

From now, test with larger and larger file and want to know when error is occurred.

Thanks and Regards,
Zwe Mann

2021-11-12 04-59-31
Manikandan Sambasivam


Is it possible to divide the file into smaller chunks and serve them sequentially? This way, you can avoid loading large files into memory all at once, preventing any performance issues. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.