An electronic apparatus comprising: a communicator; a memory configured to store at least one instruction; and at least one processor configured to execute the at least one instruction, wherein the at least one processor is configured to: receive a plurality of requests through the communicator, each of the plurality of requests comprising a request to execute a function of a plurality of functions; identify a service-level agreement, herein referred to as an SLA, for each of the plurality of functions corresponding to the plurality of requests, obtain information on consecutive execution of functions based on a specific function internally calling another function, generate function topology information based on information on consecutive execution of function of the plurality of functions, wherein function topology information indicates the relation of connection between functions; determine priorities of the plurality of functions to be inversely proportional to a remaining time of the plurality of functions based on the identified SLAs and function topology information, and execute the plurality of functions based on the determined priorities. a communicator; a memory configured to store at least one instruction; and at least one processor configured to execute the at least one instruction, wherein the at least one processor is configured to: receive a plurality of requests through the communicator, each of the plurality of requests comprising a request to execute a function of a plurality of functions; identify a service-level agreement, herein referred to as an SLA, for each of the plurality of functions corresponding to the plurality of requests, obtain information on consecutive execution of functions based on a specific function internally calling another function, generate function topology information based on information on consecutive execution of function of the plurality of functions, wherein function topology information indicates the relation of connection between functions; determine priorities of the plurality of functions to be inversely proportional to a remaining time of the plurality of functions based on the identified SLAs and function topology information, and execute the plurality of functions based on the determined priorities. receive a plurality of requests through the communicator, each of the plurality of requests comprising a request to execute a function of a plurality of functions; identify a service-level agreement, herein referred to as an SLA, for each of the plurality of functions corresponding to the plurality of requests, obtain information on consecutive execution of functions based on a specific function internally calling another function, generate function topology information based on information on consecutive execution of function of the plurality of functions, wherein function topology information indicates the relation of connection between functions; determine priorities of the plurality of functions to be inversely proportional to a remaining time of the plurality of functions based on the identified SLAs and function topology information, and execute the plurality of functions based on the determined priorities.