Hii Mehul, Loved to see. Could you please tell me how you are calculating exact time and memory used to execute the code. I am building the same thing for learning and stucked here.... I will be really greatful if you help me. Thank you
it can be easily done , I am pretty sure , because they are using docker containers to run the code , docker stores the metadata about containers , which has all details , and you can reterive it , before killing or removing the container
@AshMaker-ey9ty yes, I tried but I didn't get precise answer. It differs because of system performance. I will be grateful if you could help me. I have to measure for cpp, Java, python, js.
Our public facing API is 10x cheaper than Judge0. Internally, the margins are even better. Plus this is a core product for us and took like 2 days to build on our existing playgrounds infra
so runner = sqs + lambda ? when code is submitted, it is pushed to SQS, which would trigger lambda which would run the code ? or lambda push code to db / S3 and it is picked up by an EC2 which would run the code ?
missed these videos bro we need more
lovin the commitment of daily upload
Hii Mehul,
Loved to see.
Could you please tell me how you are calculating exact time and memory used to execute the code.
I am building the same thing for learning and stucked here....
I will be really greatful if you help me. Thank you
it can be easily done , I am pretty sure , because they are using docker containers to run the code , docker stores the metadata about containers , which has all details , and you can reterive it , before killing or removing the container
@AshMaker-ey9ty yes, I tried but I didn't get precise answer.
It differs because of system performance.
I will be grateful if you could help me.
I have to measure for cpp, Java, python, js.
Hi, I have build this exact same thing from scratch. I am following the same architecture.
I used docker container on backend with child process to run code
Yep I am working on a same solution
How are you measuring time and memory used for executing the code?
Bro, did you forgot to change the description for this video, as I believe the description is related to your evilgnix video.
Updated, thanks!
is there any way to add debugger as i m trying to add one?
Have you tried using Judge0 for this? What made you create your own runners and not use Judge0?
Learning and exploring, why we want to get away with already implemented solutions?
@shivangrathore He is running a business not exploring stuff.
Our public facing API is 10x cheaper than Judge0. Internally, the margins are even better. Plus this is a core product for us and took like 2 days to build on our existing playgrounds infra
so runner = sqs + lambda ? when code is submitted, it is pushed to SQS, which would trigger lambda which would run the code ? or lambda push code to db / S3 and it is picked up by an EC2 which would run the code ?
Why no WS for this leet code ?
Can you explain how those runner works? How they spin containers.
Would need a full video
@@codedamnlooking forward to that video. Thanks
What are u doing for spinning container in worker?
It’s a normal docker container
Please create interactive playground video also.
Why are you not trying web containers ?
It’s not useful for our case
@@codedamn Is it possible for you. explain the use case difference why it is not suitable for you
web containers can't be used for commercial usage , we need to give commission to stack blitz right?
@@parshvsheth-rj2vq yes you are right I research it yesterday and found the same
so these runners are kind of k8s worker nodes?
No they are physical hosts running docker containers. We orchestrate without k8s
You will have to add different CPU timeouts for different languages
Good point!