Wednesday, May 11, 2022

Design Round

 Flip

Design a Job/Task scheduler platform.


The platform should be able to accept and schedule tasks. The tasks should be executed on the scheduled time.


Requirements:

  1. Input - Taks, Time

  2. 1000-Tasks/Min- 

  3. ScheduleTask( user, time, task) - short time tasks - first check whether user is added, if not return - add it db for the day

  4. Background Workers - free thread , 

  5. AddUser  - db

  6. ExecuteTask()  - 


PQ - task for that day - t1, t2

T1 - today time 

T2 - tom - db

T3 - today after t1

T4- 1 year - db


ScheduleTask 

{

    Userid:int,

    ScheduleTime: datetime

    Task: object

}



No comments:

Post a Comment

Comment!!

Lauki pizza at home

  Try this low carb healthy lauki pizza at home. Lauki Pizza Recipe - 1. Lauki 1 2. Oats flour 1/2 cup 3. Parmesan cheese grated 1/4 cup 4. ...