The following diagrams illustrates the data flow for each type of deployment environment.