Design a Code Execution System | System Design

  Рет қаралды 11,398

Interview Pen

Interview Pen

Күн бұрын

Пікірлер: 15
@randomforest_dev
@randomforest_dev 5 ай бұрын
I am confused. The explanation is not specific to 'Code Execution System' logic, it is just distributed scaling in general.
@thinkingcitizen
@thinkingcitizen 5 ай бұрын
I think that's the point....
@interviewpen
@interviewpen 5 ай бұрын
There's a lot more challenges involved when we have to spin pods up and down at the user's request. Sure, we can use Kubernetes for distributed scaling in general, but the way we're using it here is not to host a distributed service but rather to create a fresh isolated environment every time a user makes a request.
@rigveddesai5843
@rigveddesai5843 5 ай бұрын
i am not sure why we can't just run a basic check on the server side when it spins up for whether the standby container exists or not? why is this not optimal? is the server initially checking for the container, accordingly spinning up/using existing standby and then assuming the standby container exists for the entirety of its uptime a bad idea?
@interviewpen
@interviewpen 5 ай бұрын
The challenge comes when we start scaling the API server horizontally. We could easily end up with race conditions if there was only one standby pod, so we'd probably want one standby pod per API node. This prevents concurrent requests to different nodes from affecting each other.
@Rustamushko
@Rustamushko 5 ай бұрын
I expected to see an architecture of scalable FaaS with interpreters\compilers. K8S is a concrete orchestration system which shall be selected among other similar systems based on some rationale. How a user receivers execution result? Synchronously or asynchronously - nothing about this?
@bhanuprakashrao1460
@bhanuprakashrao1460 21 күн бұрын
Containers are run on an linux nodes using c-groups.
@mateuszsiwiecki6267
@mateuszsiwiecki6267 4 ай бұрын
Hi, I really like your channel and have learned a lot from it. However, in this particular case, I think your solution is not good enough because it mixes application with infrastructure. In this case, a Docker in Docker solution would work much better. With such a solution, you would separate the process of load balancing and providing access to your service from the application itself, for which it would be necessary to create an environment for the given language on an ongoing basis. Besides that, keep up the good work. I always look forward to your next videos!
@interviewpen
@interviewpen 3 ай бұрын
Thanks for the suggestion, I chose Kubernetes here since it allows the infrastructure executing the code to scale separately from the API servers. Of course, the API could be deployed on any infrastructure system we want. But docker in docker would work as well and has the benefit of being easier to set up for a smaller scale system. Thanks for watching!
@harisridhar6594
@harisridhar6594 5 ай бұрын
I really like your presentation style and explanation style ; you do a fantastic job incorporating multi-colored visual elements , and personally, it helps me to digest and focus on the multiple running pieces of the architecture : basically viewer engagement.
@interviewpen
@interviewpen 5 ай бұрын
Thanks, glad you liked it!
@RZhuAmpere
@RZhuAmpere 5 ай бұрын
Great video
@interviewpen
@interviewpen 5 ай бұрын
Thanks!
@nz-andrey
@nz-andrey 5 ай бұрын
Great! Thanks for the video!
@interviewpen
@interviewpen 5 ай бұрын
Glad you liked it!
How do Databases Work? | System Design
9:46
Interview Pen
Рет қаралды 22 М.
Design a Data Warehouse | System Design
14:08
Interview Pen
Рет қаралды 25 М.
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 6 МЛН
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 120 МЛН
How do Cats Eat Watermelon? 🍉
00:21
One More
Рет қаралды 11 МЛН
Why I Don't Like Singletons
29:05
The Cherno
Рет қаралды 70 М.
Engineering Interns on their first day be like...
9:19
Tamer Shaheen
Рет қаралды 863 М.
10 Most Common System Design Interview Mistakes
9:13
System Design School
Рет қаралды 1,9 М.
When you Accidentally Compromise every CPU on Earth
15:59
Daniel Boctor
Рет қаралды 831 М.
When to Use Kafka or RabbitMQ | System Design
8:16
Interview Pen
Рет қаралды 74 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,5 МЛН
System Design: Design a URL Shortener like TinyURL
16:00
Code Tour
Рет қаралды 86 М.
Top 7 Ways to 10x Your API Performance
6:05
ByteByteGo
Рет қаралды 333 М.