How boundaries shape chemical delivery in microfluidics