Figure 1:
Location of middleware layer.