News for hackers. Stuff that matters.
Re:SvelteKit 1.0 by bearjaws on Wednesday December 14, 2022 @01:23PM (#33987545)
Anyone know a good way to solve Prisma memory usage? We use a database per customer and each one adds 50-80mb of RAM. Our backend currently consumes 2-3GiB of RAM to host less than 100 customers...

App server has GC pauses of 50-80ms as a result of the memory usage.

Re:SvelteKit 1.0 by meowtimemania on Wednesday December 14, 2022 @01:29PM (#33987678)
how many customers do you have?
Re:SvelteKit 1.0 by 5Qn8mNbc2FNCiVV on Wednesday December 14, 2022 @03:17PM (#33989757)
If you use a database per customer you should also run a node process per customer. I don't know what exactly you're selling, but that bit of RAM should be in budget alone for the reason that you don't want the requests of customers slowing each other down

I recently jumped over that "trying to minimize resources" hurdle myself because it's just not economically correct for me to spend even an hour of my time when I can host a few months worth of servers for that money