A hybrid approach to real-time cloud applications