Chapter 16Serverless and Microservices Security
Securing serverless and microservices architectures presents a distinct set of challenges that diverge sharply from those of traditional infrastructure. These highly distributed and ephemeral computing models prioritize agility, scalability, and modularity—yet introduce new risks around isolation boundaries, identity propagation, and control visibility. Understanding how to implement effective security measures across stateless functions, event-driven triggers, and independently deployed components is crucial for maintaining both system integrity and regulatory compliance. Without deliberate design and monitoring, the rapid execution and transient nature of these workloads can obscure malicious behavior and complicate incident response.
Core Concepts of Serverless and Microservices Architectures
Serverless computing and microservices architectures have transformed the landscape of application design, deployment, and scalability in modern cloud environments. In a serverless model, the cloud provider dynamically manages the allocation and provisioning of servers, abstracting away the underlying infrastructure entirely. Code execution is triggered by discrete events, such as HTTP requests, file uploads, or database changes, and functions typically run in ephemeral containers that are instantiated on demand. This event-driven model reduces operational overhead but introduces new dimensions of risk and complexity, particularly when ...
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