A framework for distributed messaging