Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider swapping Goja with Sobek for Javascript Processor #2846

Open
nickchomey opened this issue Sep 7, 2024 · 0 comments
Open

Consider swapping Goja with Sobek for Javascript Processor #2846

nickchomey opened this issue Sep 7, 2024 · 0 comments
Labels
enhancement processors Any tasks or issues relating specifically to processors

Comments

@nickchomey
Copy link

The JavaScript Processor uses Goja, and you have these caveats in your docs.

The execution engine behind this processor provides full ECMAScript 5.1 support (including regex and strict mode). Most of the ECMAScript 6 spec is implemented but this is a work in progress.

Imports via require should work similarly to NodeJS, and access to the console is supported which will print via the Redpanda Connect logger. More caveats can be found on GitHub.

This processor is implemented using the github.com/dop251/goja library.

For these same reasons, the k6 team at Grafana recently forked Goja into Sobek, where they merged their long-outstanding PR for ES Module support. It also looks like they've been merging all other commits to Goja.

Given these advancements, and the deeper resources available at Grafana, it seems to me that it would be prudent to switch to Sobek.

@mihaitodor mihaitodor added enhancement processors Any tasks or issues relating specifically to processors labels Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement processors Any tasks or issues relating specifically to processors
Projects
None yet
Development

No branches or pull requests

2 participants