Can K6 invoke redis client from nodejs?

Dear K6 experts,

I want to use K6 to invoke nodejs redis client for redis related tasks. Is it possible? If YES, could u please kindly let me know how?

Thanks in advance!

Thanks,
Roy

Hi @royzhang007,

k6 doesn’t support Node.js and browser APIs, because it uses Goja for running JavaScript code. You can try bundling node-redis using this template repository to see if it works.

BTW, If you can make it work, just let me know.

Thanks,
Mostafa.