TheLittlePrince
TheLittlePrince
RRailway
Created by TheLittlePrince on 10/23/2023 in #✋|help
Performance Discrepancy Between Localhost and Railway Deployment using NodeJS
I am experiencing a significant performance discrepancy between running a Node.js script on my localhost and running the same script on Railway. The script involves heavy usage of API requests to Shopify and ERP. When I run this script on my localhost, it completes in approximately 45 minutes. However, when running the script on Railway, the process takes roughly 6 hours to complete. Given that the code is unchanged between the two environments, the performance difference is puzzling, and I am reaching out for input or suggestions on why this might be the case and how to possibly improve the performance on the Railway platform. Any guidelines or optimizations for running extensive API calls in a Railway app environment would be highly appreciated.
17 replies