Making HeartBeatService a singleton in app context