. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Intro Details Demo Thank you Why another job scheduler? • We need a job scheduler for game servers to update content at specific time. • One job at a time to prevent from race condition. • Record job status.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Intro Details Demo Thank you Internal Workings • New job input into a buffered channel first. • A goroutine for running background jobs: 1. For each enqueued job, run job if specific time reached. 2. Wait for 1 second while enqueue jobs from buffered channel. 3. Repeat