Most microbial life on Earth is found in localized microenvironments that collectively exert a crucial role in maintaining ecosystem health and influencing global biogeochemical cycles. In many habitats such as biofilms in aquatic systems, bacterial flocs in activated sludge, periphyton mats, or particles sinking in the ocean, these microenvironments experience sporadic or continuous flow. Depending on their microscale structure, pores and channels through the microenvironments permit localized flow that shifts the relative importance of diffusive and advective mass transport. How this flow alters nutrient supply, facilitates waste removal, drives the emergence of different microbial niches, and impacts the overall function of the microenvironments remains unclear. Here, we quantify how pores through microenvironments that permit flow can elevate nutrient supply to the resident bacterial community using a microfluidic experimental system and gain further insights from coupled population-based and computational fluid dynamics simulations. We find that the microscale structure determines the relative contribution of advection versus diffusion, and even a modest flow through a pore in the range of 10 µm s−1can increase the carrying capacity of a microenvironment by 10%. Recognizing the fundamental role that microbial hotspots play in the Earth system, developing frameworks that predict how their heterogeneous morphology and potential interstitial flows change microbial function and collectively alter global scale fluxes is critical.