I have created a function in my class, I need to execute this method for every second. This service need to be run as background service to update something to users. My scenario, I have an application like stock market. I'm receiving the base rates from one external service. I have parsed this base rate and stored into redis. When ever base rates get change this will update in redis. So redis holding the base rates. Users will set the rate alert like if the stock rate hit 3030 need an notification to their mobile. So I nee to check in this service If rates hit client requested rate I need to send one process to queue, queue will send sms and notification to client. Now I have make ready my method now I need to run this method as background service in lumen api.