Event-based data processing and analysis framework