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!!

Victoria Canada Trip

 Victoria city to do and must have  1. Parliament building  2. Waterfront  3. Mini sea-bus at waterfront  4. Fisherman wharf   5. Museum (op...