mushuw
mushuw
RRailway
Created by mushuw on 5/21/2023 in #✋|help
How does Database scaling work with horizontal scaling?
Today horizontal scaling was introduced, and it works on a test server I have. But, I don't have a database attached to it yet. What assumptions can we make about database scaling? In particular Postgres, MySQL, and MongoDB. If I were to blind guess: there is no database horizontal scaling at all. MongoDB could replicate and have eventual consistency... LULW
5 replies
RRailway
Created by mushuw on 11/26/2022 in #✋|help
NodeJS server does not use connection keep-alive anymore
I moved my NodeJS http server from Heroku to NodeJS. It's just a school project, so it uses regular http (not https). Immediately, I noticed that API calls were slower, and upon inspecting the Network tab, I saw that the API calls do not use keep-alive anymore. I attempted to remedy this by specifying the timeout server.keepAliveTimeout = 60 * 1000; but that did not force add the header. I lack the intuition / experience to debug this any further. Does anyone have any ideas on the issue? project id: d5be23c8-4764-482f-aed7-f83c6e8007a2
3 replies