Analyzing customer data in real time