BROKER_EVENTHANDLER Wait Type in SQL Server

⏳Part of the SQL Server Wait Types Library, every wait type explained.Related deep dive: SOS_SCHEDULER_YIELD Wait TypeRelated pillar: Performance & Troubleshooting

Is It a Problem?

No. It is commonly filtered as benign, and Get Wait Statistics filters it out by default.


What It Means

Microsoft’s definition: a task waiting in the primary event handler of the Service Broker, which it says should occur very briefly. In practice it is the per-instance Broker event handler thread waiting for a timeout event, or for Broker to start or stop, with a cumulative total roughly equal to the instance’s uptime.

Our SQL Server 2025 lab shows why both can be true. Two readings about an hour apart went from about 18,600 seconds to 72,500 seconds, with almost no change in the count: one long wait had ended and was added in one go, because the view only counts waits once they complete.


When It Does Matter

It does not.

Service Broker health lives elsewhere. Messages that cannot be delivered sit in sys.transmission_queue with a transmission_status explaining why, activation procedure errors go to the error log, and conversations that are never ended pile up in sys.conversation_endpoints. The baseline to monitor is the row count in those two views staying flat. Get Service Broker Health and Database Mail Queue checks both.


The BROKER Family

These are the Service Broker background waits. Most of them tick over on every instance, whether or not you use Broker, because the threads behind them always exist. If one is near the top of your waits, start from the waits that usually matter instead.

  • BROKER_TO_FLUSHLazy flusher. Flushing in-memory transmission objects to a work table.Usually noise
  • BROKER_TASK_STOPTask shutdown. The queue task handler shutting a task down.Usually noise
  • BROKER_TRANSMITTERTransmitter idle. The two transmitter threads waiting for messages to send.Usually noise
  • BROKER_TRANSMISSION_TABLETransmission table. Documented as internal use only; tied to transmission bookkeeping.Usually noise
  • BROKER_TRANSMISSION_WORKTransmission work. Documented as internal use only.Usually noise
  • BROKER_EVENTHANDLEREvent handler. The primary Broker event handler waiting for its next event.Usually noise. This page.
  • BROKER_RECEIVE_WAITFORRECEIVE WAITFOR. A RECEIVE WAITFOR statement waiting for a message to arrive.Usually noise
  • BROKER_INIT and startup waitsStartup and shutdown. Broker initialising in each database, and its endpoint and startup machinery.Usually noise

Where To Go Next

BROKER_EVENTHANDLER is background noise on a healthy instance. If you are chasing a real problem, start with the waits that cost you time.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *