Howdy!
I’m moving my stack from Heroku to Fly and am having a grand time. The only part that’s not workin’ out for me is the Upstash integration – the performance seems to be abysmal. The benchmark timing for the ‘starter‘ Upstash plan is so far off the mark there’s just no way I could ever use it in production.
I wrote a short benchmarking script to insert 1K small key-val pairs (~10 bytes) and 100 larger key-val pairs (~10KB), then measure retrieval timing.
Using Heroku Redis (Premium 1), my timings:
"redis_get_mean": 0.70ms,
"redis_get_p95": 0.76ms,
"redis_large_get_mean": 0.74ms,
"redis_large_get_p95": 0.80ms
Using Upstash (single region, same region as my app, LAX):
"redis_get_mean": 14.1ms,
"redis_get_p95": 19.9ms,
"redis_large_get_mean": 16.5ms,
"redis_large_get_p95": 25.2ms,
As a sanity check, I spun up a redis.io starter database and pointed the same script at it. Not as quick as Heroku, but bounds better than Upstash…
"redis_get_mean": 1.37ms,
"redis_get_p95": 2.61ms,
"redis_large_get_mean": 1.32ms,
"redis_large_get_p95": 1.90ms
I’d really like to use Upstash, but with the above numbers, my performance would tank.
Any thoughts? I’m all out of ideas.
Thanks ![]()