Ejectors use Bernoulli's principle to pump one fluid using the pressure energy of another fluid. They work by accelerating a high pressure fluid through a nozzle, lowering its pressure and increasing its velocity. This creates eddies and suction that pull in a second fluid through a side inlet. The fluids then mix and their pressure increases in a diffuser section before being discharged at an intermediate pressure between the high and low pressure fluids. Ejectors are used in oil and gas applications to compress gases.