Stochastic models for service systems and limit order books