An event-driven communication framework