Code organization

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 ...

Get Serverless Design Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.