frigjord
frigjord
DDeno
Created by Joseph Crawford on 9/12/2024 in #help
Deno Memory Usage Increases, Does Not Decrease.
I'd recommend checking what you do with the value after it's been read, you can manually clean it from memory with delete myvariable
40 replies
DDeno
Created by Joseph Crawford on 9/12/2024 in #help
Deno Memory Usage Increases, Does Not Decrease.
So this isn't the cause of your issues, which is great to know!
40 replies
DDeno
Created by Joseph Crawford on 9/12/2024 in #help
Deno Memory Usage Increases, Does Not Decrease.
I've done some extreme testing with 20 000 keys taking 2GB of memory, reading at 4Gbit/s in 100+ iterations. There is memory buildup, but the garbage collector cleans it after ~200 to 250MB.
40 replies
DDeno
Created by Joseph Crawford on 9/12/2024 in #help
Deno Memory Usage Increases, Does Not Decrease.
We're using KeyDB to enable multi-threading for redis server, but this single-command thing is a protocol limitation.
40 replies
DDeno
Created by Joseph Crawford on 9/12/2024 in #help
Deno Memory Usage Increases, Does Not Decrease.
Redis errors out if you overlap commands from a single connection.
40 replies
DDeno
Created by Joseph Crawford on 9/12/2024 in #help
Deno Memory Usage Increases, Does Not Decrease.
If you're doing read/writes in parallell towards the same redis instance in deno, you'd require pooling or only a single command can be run at one time.
40 replies
DDeno
Created by Joseph Crawford on 9/12/2024 in #help
Deno Memory Usage Increases, Does Not Decrease.
The issue we had with denodrivers/redis is that it has no connection pooling or pipeling. I'm assuming that ioredis has connection pooling, but it's also there I suspect memory issues.
40 replies
DDeno
Created by Joseph Crawford on 9/12/2024 in #help
Deno Memory Usage Increases, Does Not Decrease.
Alright, so no pub/sub or expires?
40 replies
DDeno
Created by Joseph Crawford on 9/12/2024 in #help
Deno Memory Usage Increases, Does Not Decrease.
Which features of it do you use?
40 replies
DDeno
Created by Joseph Crawford on 9/12/2024 in #help
Deno Memory Usage Increases, Does Not Decrease.
I'll run it through it's paces anyway.
40 replies
DDeno
Created by Joseph Crawford on 9/12/2024 in #help
Deno Memory Usage Increases, Does Not Decrease.
Then it sounds like ioredis is more than production ready 😄
40 replies
DDeno
Created by Joseph Crawford on 9/12/2024 in #help
Deno Memory Usage Increases, Does Not Decrease.
I'll post here with any findings
40 replies
DDeno
Created by Joseph Crawford on 9/12/2024 in #help
Deno Memory Usage Increases, Does Not Decrease.
Thanks for the quick reply! I'll setup a test environment and bombard ioredis with messages and see if I can isolate the issue to this driver - we're rolling out into production ourselves and the denodriver/redis keeps crashing. ioredis seems to be the only alternative.
40 replies
DDeno
Created by Joseph Crawford on 9/12/2024 in #help
Deno Memory Usage Increases, Does Not Decrease.
@Joseph Crawford Did you ever pin this down? I'm testing out ioredis on deno and am wondering if that could be the cultprit, since it's not designed for Deno.
40 replies
DDeno
Created by frigjord on 10/15/2023 in #help
How can i change the location of Cache.open('somedb')
I checked the Deno source, only tmp is implemented.
3 replies
DDeno
Created by frigjord on 6/30/2023 in #help
Can't connect to http server on official alpine deno with std serve.
No the top redis package from deno.land
13 replies
DDeno
Created by frigjord on 6/30/2023 in #help
Can't connect to http server on official alpine deno with std serve.
Found the issue, redis client hanged indefinitely when connecting
13 replies
DDeno
Created by frigjord on 6/30/2023 in #help
Can't connect to http server on official alpine deno with std serve.
export { serve } from "https://deno.land/std@0.123.0/http/server.ts";

async function handler (request, connInfo) {
return new Response('OK');
}

serve(handler, { port: 8080 });
export { serve } from "https://deno.land/std@0.123.0/http/server.ts";

async function handler (request, connInfo) {
return new Response('OK');
}

serve(handler, { port: 8080 });
13 replies
DDeno
Created by frigjord on 6/30/2023 in #help
Can't connect to http server on official alpine deno with std serve.
Logs aren't giving any clues or errors
13 replies