The mechanics of data flows