

# Lambda architecture costs
<a name="lambda-architecture-costs"></a>

You are responsible for the cost of the AWS services used while running the Lambda architecture. The below table gives the breakdown of costs for different workload sizes.

## Assumptions
<a name="lambda-cost-table"></a>
+ 90% cache hit rate
+ Average image size: 45 KB
+ 350 ms processing time per image


| AWS service | 10M images served | 125M images served | 500M images served | 
| --- | --- | --- | --- | 
|   **Amazon API Gateway**   |  \$11.00  |  \$113.00  |  \$150.00  | 
|   **AWS Lambda**   |  \$10.93  |  \$112.08  |  \$146.46  | 
|   **Amazon CloudFront**   |  \$1200.00  |  \$1200.00  |  \$11000.00  | 
|   **Amazon S3**   |  \$10.40  |  \$15.00  |  \$120.00  | 
|   **Amazon CloudWatch**   |  \$11.15  |  \$119.17  |  \$175.67  | 
|   **Total**   |   **\$1203.48**   |   **\$1249.25**   |   **\$11192.13**   | 