A distributed real-time analytics API