
Design (and discuss how you would implement) an in-memory job registry that supports concurrent access.
Each job has a unique jobId and an expiration time (TTL or absolute timestamp). The system must:
addJob(jobId, payload, expiresAt)
: add or update a job with an expiration time.
getJob(jobId)
: fetch job if it exists and is not expired.
removeJob(jobId)
: remove a job.
Login required