A Survey from Real-Time to Near Real-Time Applications in Fog Computing Environments