Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a size limit on response size in Node.js

I am developing an Android App which syncs with a MongoDB server in the backend. The amount of data sent by MongoDB is large and I am not receiving it whole on my client side(Android App). Is there a size limit on responses for HTTP requests in Node.js? If there is, how can I solve this problem? I am using Node.js + Express.js + MongoDB on my backend.

like image 450
shikhar bansal Avatar asked Dec 24 '22 22:12

shikhar bansal


1 Answers

There is no size limit on responses sent from a node HTTP server. The amount of memory your application has access to is the only limitation.

like image 84
idbehold Avatar answered Dec 28 '22 10:12

idbehold