RTB is a real-time auction for the buying and selling of digital ad inventory. It involves a demand-side platform, supply-side platform, and an ad exchange as the link between them. In short, RTB is a process, whereas ad exchange is simply a software-based platform — one of the essential participants of an RTB. Thus, it wouldn't be fair even to compare the two.