1. A system comprising: a memory; and a server communicatively connected to the memory, the server providing a multi-tenant database and application service that includes a plurality of records, each of the plurality of records associated with a tenant in the multi-tenant database and including at least one connection to another tenant in the multi-tenant database, the server configured to: provide a message queue configured for storing messages; provide an event queue configured for storing events; and process record actions on the plurality of records by: selecting a plurality of messages in the message queue for processing, the selected plurality of messages corresponding to a plurality of record actions to be performed on records in the multi-tenant database; identifying a plurality of events in the event queue corresponding to the selected plurality of messages; and processing the identified plurality of events as a batch to execute the plurality of record actions.