Xdcr pending mutations

Hello,

Trying to understand how does xdcr handle backlog i.e. pending mutations? If target is unavailable for sometime, does XDCR accumulate changes in memory or write to disk? OR does it use some other mechanism?

Thanks