Im in the process of building an espresso machine from readily available parts. I have a solenoid pump that supplies pressurized hot water to the coffee grounds. I want to be able to tune the pressure and flow of the system.

I can tune the max line pressure using an over-pressure valve, but I'm less sure about how I can reduce the flow-rate and maintain whatever pressure I set at the OP valve.