A flexible rate limited queueing system