Scalable optionally persistent message queue