flush every configurable number of requests