distributed remote code execution engine
Send code, we will run it :)
Blog version: https://blog.rockthejvm.com/remote-code-execution-engine/
Video demo: https://www.youtube.com/watch?v=sMlJC7Kr330
Requirements for deploying locally:
Running locally (startup may be slow for the first time since it needs to pull a few docker images):
chmod +x deploy.sh
./deploy.sh
In case you change code and want to run the new version you should execute:
./deploy.sh rebuild
Example:
POST
request at localhost:8080/lang/python
python
code to request bodySupported programming languages, HTTP paths and simple code snippets for request body, respectively:
Java
- localhost:8080/lang/java
public class BrainDrill {
public static void main(String[] args) {
System.out.println("drill my brain");
}
}
Python
- localhost:8080/lang/python
print("drill my brain")
Ruby
- localhost:8080/lang/ruby
puts "drill my brain"
Perl
- localhost:8080/lang/perl
print "drill my brain\n";
JavaScript
- localhost:8080/lang/javascript
console.log("drill my brain");
PHP
- localhost:8080/lang/php
<?php
echo "drill my brain";
?>
Architecture Diagram:
TODO:
pekko
libraries to make cluster bootstrapping and management flexible and configurable - ❌