Enviar por SMS: Analysis and optimization of stochastic systems