Stream (CO) Interview Question

System design for an event driven system, database optimizations for performance