public function queueWithMaximumThroughput()
    {
        return collect($this->measuredQueues())->sortBy(function ($queue) {
            if ($snapshots = $this->connection()->zrange('snapshot:queue:'.$queue, -1, 1)) {
                return json_decode($snapshots[0])->throughput;
            }
        })->last();
    }
public function queueWithMaximumThroughput()
    {
        return collect($this->measuredQueues())->sortBy(function ($queue) {
            if ($snapshots = $this->connection()->zrange('snapshot:queue:'.$queue, -1, 1)) {
                return json_decode($snapshots[0])->throughput;
            }
        })->last();
    }
public function queueWithMaximumThroughput ( ) { return collect ( $ this -> measuredQueues ( ) ) -> sortBy ( function ( $ queue ) { if ( $ snapshots = $ this -> connection ( ) -> zrange ( 'snapshot:queue:' . $ queue , - 1 , 1 ) ) { return json_decode ( $ snapshots [ 0 ] ) -> throughput ; } } ) -> last ( ) ; }
Get the queue that has the most throughput.

@return int
Get the queue that has the most throughput .