Building an enterprise-grade real-time analytics platform