Intigrating Queue implementation with dispatch loop with token-bucket rate controller