Chapter 2. Understanding Serverless Architectures and Implementation Patterns
A few years ago, my team took on the challenge of migrating a complex serverful ML-powered application to a serverless architecture.1 For at least half a year, we experienced the challenging but rewarding process of deconstructing a monolithic application and rewriting it into modular, event-driven components.
We knew that serverless applications are not immune to security attacks, so we embraced security as a core design requirement and made it a priority to ensure that secure coding practices and access controls were consistently enforced during the migration phase. Despite the abstraction of the underlying infrastructure associated with serverless implementations, we still had to deal with vulnerabilities and misconfigurations that can exist at the application, storage, and integration layers. Therefore, it was crucial for us to address the following questions before moving forward with the migration:
-
What services will be used to build the application? Which ones are serverless, and which ones are not?
-
How will the application be built? How will we group the components together? What implementation patterns will be used when building the application?
-
How will each component of the application be configured? Which components can invoke other functions or services?
-
Where will the data be stored?
-
What are our alternatives for implementing certain modules? What similar services are available ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access