Given all of the things outlined in this chapter, it becomes clear that for most applications, it is easier to view FaaS as a component augmenting your overall application architecture, rather than an environment completely handling the business logic layer.
The following types of workloads are best suited for a serverless environment:
- Asynchronous
- Event-driven
- Stateless
- Fast
The following types of workloads will benefit the most in serverless environment:
- Characterized by variable load
- Requiring massive horizontal scale
- Event-driven
- Augmenting other cloud services
- Standalone (needing a different toolset or version than the rest of the application)
For the right type of workload, serverless computing provides excellent benefits. Serverless computing can bring significant cost savings (discussed in more detail in Chapter 13, Designing High Availibility, Disaster Recovery, and Scale) and the advantages of completely dynamic scaling based on load.