hstro
Video upload to my ExpressJS Railway app is suuuuper slow. If locally hosting server, super fast.
Oooh very interesting. I would have never found that on my own - thank you very much 🙂
Is it reasonable to assume that some day the uploads will be faster without me needing to change my code?
I'd love to hear why this is happening when you all find the answer 👀
127 replies
Video upload to my ExpressJS Railway app is suuuuper slow. If locally hosting server, super fast.
So I asked ChatGPT :p
Postman is an Electron-based application, which means it is built on top of Chromium and Node.js. While it shares some similarities with a browser, Postman is specifically designed and optimized for working with APIs, unlike web browsers that cater to a wide range of use cases and prioritize security and user experience.
When making requests, Postman does not use the same APIs as web browsers, like fetch or XMLHttpRequest. Instead, it uses Node.js libraries to make HTTP requests, such as the built-in http and https modules, or third-party libraries like request (now deprecated) or axios.
Since Postman is built on top of Node.js and uses server-side libraries for making requests, it is not subject to the same security restrictions and limitations as web browsers. Additionally, Postman is specifically optimized for working with APIs, which means it may have a more efficient implementation for handling file uploads compared to general-purpose web browsers.
Although Postman runs in an Electron-based environment, which uses Chromium under the hood, it should not be considered equivalent to a regular web browser in terms of functionality and performance characteristics. The difference in upload speed you are experiencing between Postman and web browsers can be attributed to these differences in implementation and optimization for API-related tasks.
127 replies