What does our code layout look like when we attempt to isolate application code from cloud provider-specific code? Let's take a look at the following diagram that shows the high-level structure of our REST or GraphQL API from Chapter 2, A Three-Tier Web Application Using REST, and Chapter 3, A Three-Tier Web Application Pattern with GraphQL, respectively:
Our example application was authored in Python, but this diagram shows how this general code organization can work for Node, Python, or any other language. In addition to being language-agnostic, this should be both framework- and cloud provider-agnostic. The primary goal ...