Coffee is chemistry. When you get a couple important variables right, the end result is indeed a very tasty cup. At the machine and extraction stage, temperature and pressure are the two major variables that determine how good your espresso will be.
What differentiates an espresso from other types of coffee is it’s unique mix of temperature and pressure. Traditionally, coffee was brewed over long periods of time, and extracted out many of the flavor in the bean, both good and bad. These brewed versions were made with finely powdered beans and boiled with sugar and water, like Turkish or Arabic coffee is today. However, in the 1700’s Europeans began to prefer a refined version, using a cloth filter bag and cooler water - so that resulting coffee is less bitter and astringent. The modern espresso only came of age in the 19th century with the invention of the espresso machine, which made its debut at the 1855 Paris World Fair. Rather than letting time extract flavor from the beans, espresso relies on forcing hot water at high pressure through tightly packed beans to bring out a uniquely concentrated and balanced cup.

A machine has to do two important things to make good espresso. It needs to heat water to a consistent 88-92 degrees Celsius, and then deliver that water to the puck of coffee grinds at a pressure of 9 to 11 atmospheres. Espresso machines are also expected to make steam, which is useful for frothing milk. This is harder than you think. Getting water to a precise and consistent temperature and pressure presents several engineering challenges. The temperature required for making steam is much higher than making coffee, and therefore machines that are able to do both proficiently are both expensive and complicated.
A single boiler machine, the cheapest of espresso machines, use a single boiler and pump. After the coffee is made at 88-92 degrees, an element can be switched on to heat the water to above 100 degrees to create steam. However, there is a significant lag time for this and usually results in mediocre coffee and mediocre steam.
The best machines are double boiler machines. These are usually the ones you find at professional coffee shops. It has a boiler tank that produces steam and a boiler tank that is calibrated to keep water at the right temperature for coffee.
A third type, a heat exchanger (HX) machine, also uses a single boiler, but uses a clever system to deal with the dual heat requirement. The boiler is kept at a temperature above 100 degrees, hot enough to generate high steam pressure. The water used for coffee, however, does not originate from the boiler, but instead from a cool water reservoir in the back. When the machine is switched on, cool water is pumped through a metal pipe that passes inside of the boiler, heating the water to the correct temperature before infusing the coffee (thus the heat exchange). This method allows both for excellent steam and coffee without the excess weight and size of a double boiler. However, an HX machine needs a little extra care. Water that is in the section of pipe passing through the boiler becomes superheated and too hot for coffee. Therefore a HX machine needs a “flush”, where the hot water needs to be flushed out of the system with cool reservoir water to equalize the piping to the correct temperature.
I use an ECM Giotto machine, which is an HX machine. The grouphead (the shiny silver part) is one of coffee’s most famous and enduring designs - the Faema e61. This component has been perfected and is common amongst most of the great HX machines. Due to the required HX flush, I’ve installed a thermometer in the grouphead to measure the actual temperature of the water passing through, which allows me to calibrate with precision how much water to flush before the system is at the right temperature.