A brewing unit includes a brewing chamber having at least two brewing chamber portions movable one with respect to the other, a water heater, a hot water duct for feeding hot water from the water heater to the brewing chamber, and a beverage dispensing duct from which a beverage is dispensed. The water heater has a cavity through which the beverage dispensing duct extends for connection to an outer beverage dispensing spout.