r/AskProgramming • u/SDJ- • Oct 15 '26
Building a distributed system
So we have to build a project on distributed systems, but we cant use kubernetes . So we were thinking of going on the task schedular road and chose that filed in distributed systems. And e thought of building a media processing based task shcedular. Can i know your thoughts on this what is best , and any industrial current needs or holes you see? This is a middleware project by the way and we are trying to build it as a good project to put in our CV's.
2
Upvotes
View all comments
1
u/PLBjt Oct 15 '26
Media processing is a decent pick because the jobs are long and chunky, so the interesting failures actually show up. The part that makes it look like a real distributed system is worker ownership: give each job a lease with a heartbeat, and if a worker stops heartbeating the lease expires and another worker can grab it. Then the scheduler itself is your next single point of failure, so either run two with leader election or keep job state in Postgres and have workers claim jobs with SELECT ... FOR UPDATE SKIP LOCKED. For the demo, kill a worker halfway through a transcode and show the job still finishes once with no duplicate or half-written output (write to a temp file, rename at the end). Putting RabbitMQ underneath is fine too, but then your project is mostly the lease and retry logic on top, which is the part people reviewing it will care about anyway.