Perf work

Jonathan Swenson · Friday Demos · February 21, 2025 · 3:51

We're doing lots of work to make sure the app stays performant at extremely high concurrency.

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. all righty U My Demo is going to be probably very boring and not visual um but uh I've been sort of uh working uh to sort of continue uh some work that I've been sort of to allow for us to execute more complicated jobs in the orchestrational ER one thing that came out of some load testing that we did at the end of the year last year was that maybe the um implementation was not quite the existing implementation wasn't going to scale quite as as well as we were hoping um so was looking into ways to improve the uh just to see if we could you know make some wins and and to tweak a couple of things to make things faster in sort of

  2. that new implementation I'm working on um the answer was yes and I said okay well that's cool maybe I can make those same uh tweaks back uh towards the existing product too um to sort of make things faster there so I reimplemented and part of this was actually in the load test and to se if it was going to work for the future system but I was playing with what would happen if we um took the state store that we use to keep track of running queries and move it into um reddis or Amazon's valky and to uh to see what would happened there and at first um it worked really well was super fast and then when I tried to throw some real load

  3. at it I immediately ran out of space and renis and immediately okay not quite immediately putting some pretty high load tests but would run out of space and redish and would start to really bog down when you had really large payloads um so think of like a really large SQL text and things like that so I decided to turn on compression and to see how that would work and it got um significantly faster as well as didn't run out of space and it kind have performed admirably and I said well what would happen if we just turned on compression for our existing state store as well so I was playing with sort of some of these ideas to see what it looks like um so

  4. I kind of have two cases that I was looking at first was our existing stage St postgress with no compression five tiles no filters basically just trying to bang on this as fast as I possibly could I was running about 230 queries per second um on the the hardware I was on which is not all but it's the same all of them just added compression both for p post and the Cal index for here it bumped up to about 252 queries per second um so a little bump but not that crazy um I'll skip ahead and go so the larger things the larger filter sets and larger queries it dumped down pretty significantly 88 queries per second with no compression but as soon as it

  5. turned on compression it bumped up to 170 so almost doubled there or more than d Almost doubled um and then I um wanted to try it out with the redus implementation both with the compression and cing disc compression um immediately on the no filter set significantly faster 337 queres per second in this test um and then when I turn it on for the large ones we see that it bumps up to kind of stays around 300 it really do BM in in the same way with these larger filter this we just definitely running into problems with with postgress it was slowing down um sort of across the board it's a lot faster at even some of the higher you know percent LS and was able

  6. to sort of use that there's a couple things that actually slowed down um so for example the the cash right was a little bit slower in some of these and that's largely because uh we're hitting it with so much more traffic another system is is starting to slow down so getting into play with some of these things and and know hopefully these will um come come to the a product near you soon um the the really this only shows up under significant load um but will definitely help us scale better faster in the future