UpGuard Interview Question

How would you implement a micro-batching library