Device for cooling a beverage, the device comprising: - a dispensing line comprising a beverage inlet at a proximal end of the dispensing line for receiving the beverage and a beverage outlet for dispensing the beverage, the dispensing line providing a beverage flow path between the beverage inlet and the beverage outlet; - a buffer module comprising: - a buffer circuit arranged to provide a buffer flow path for circulating coolant fluid; - a buffer heat exchanger arranged to exchange thermal energy between coolant fluid in the buffer circuit and an external medium; - a buffer container for storing coolant fluid; and - a buffer flow module (208, 209) for controlling a flow of coolant fluid in the buffer circuit; - a cooling module, comprising: - a primary cooling circuit providing a primary cooling flow path for circulating coolant fluid; - a primary cooling heat exchanger arranged to allow exchange of thermal energy between beverage in the dispensing line and coolant fluid in the primary cooling circuit; - a primary cooling flow module for controlling a flow of coolant fluid through the primary cooling circuit; - a supply conduit providing a supply flow path for coolant fluid between the buffer circuit and the primary cooling circuit, upstream of the primary cooling flow module; and - a return conduit providing a return flow path for coolant fluid between the buffer circuit and the primary cooling circuit, downstream of the primary cooling heat exchanger; wherein the primary cooling circuit comprises a closed loop cooling flow path arranged to circulate coolant fluid therethrough, in particular independently of the buffer circuit. - a dispensing line comprising a beverage inlet at a proximal end of the dispensing line for receiving the beverage and a beverage outlet for dispensing the beverage, the dispensing line providing a beverage flow path between the beverage inlet and the beverage outlet; - a buffer module comprising: - a buffer circuit arranged to provide a buffer flow path for circulating coolant fluid; - a buffer heat exchanger arranged to exchange thermal energy between coolant fluid in the buffer circuit and an external medium; - a buffer container for storing coolant fluid; and - a buffer flow module (208, 209) for controlling a flow of coolant fluid in the buffer circuit; - a buffer circuit arranged to provide a buffer flow path for circulating coolant fluid; - a buffer heat exchanger arranged to exchange thermal energy between coolant fluid in the buffer circuit and an external medium; - a buffer container for storing coolant fluid; and - a buffer flow module (208, 209) for controlling a flow of coolant fluid in the buffer circuit; - a cooling module, comprising: - a primary cooling circuit providing a primary cooling flow path for circulating coolant fluid; - a primary cooling heat exchanger arranged to allow exchange of thermal energy between beverage in the dispensing line and coolant fluid in the primary cooling circuit; - a primary cooling flow module for controlling a flow of coolant fluid through the primary cooling circuit; - a supply conduit providing a supply flow path for coolant fluid between the buffer circuit and the primary cooling circuit, upstream of the primary cooling flow module; and - a return conduit providing a return flow path for coolant fluid between the buffer circuit and the primary cooling circuit, downstream of the primary cooling heat exchanger; - a primary cooling circuit providing a primary cooling flow path for circulating coolant fluid; - a primary cooling heat exchanger arranged to allow exchange of thermal energy between beverage in the dispensing line and coolant fluid in the primary cooling circuit; - a primary cooling flow module for controlling a flow of coolant fluid through the primary cooling circuit; - a supply conduit providing a supply flow path for coolant fluid between the buffer circuit and the primary cooling circuit, upstream of the primary cooling flow module; and - a return conduit providing a return flow path for coolant fluid between the buffer circuit and the primary cooling circuit, downstream of the primary cooling heat exchanger;