Information Freshness Optimization In Real-Time Network Applications