Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As vanilla WebSocket is so bad to use in TypeScript, I think we should not actually use it.
To solve this, I now have two solutions. Which I personally prefer the second one.
Use node.js to develop the Judger instead of rust.
Socket.io
, which makes the Judge Leader's development much easier, and the code look way much better because we've already usedSocket.io
between the Judge Leader and the Judger port, it's odd to have bothSocket.io
and Vanilla WebSocket together.Use HTTP. CURRENT ARCH
We can set up an HTTP server on the judger.
Here is the way.
POST
requests the Judge Leader's/api/judger
, send its max judging max thread and server port.POST
the Judger's/api/task
, send:DELET
to the Judge Leader's/api/task
to finish the task.I personally prefer the second solution.
Beta Was this translation helpful? Give feedback.
All reactions