Serverless Computing

A Comprehensive Overview for MCA Seminar

Presented by: Thejaswi S

MCA Final Year

Date: June 14, 2025

Table of Contents

  1. What is Serverless Computing?
  2. How Serverless Works
  3. Serverless vs Traditional Computing
  4. Key Components: FaaS vs BaaS
  5. Major Serverless Platforms
  6. Benefits of Serverless Computing
  7. Challenges and Limitations
  8. Serverless Architecture Patterns
  9. Common Use Cases
  10. Real-World Examples
  1. Security in Serverless
  2. Best Practices
  3. Monitoring and Debugging
  4. Cost Optimization
  5. Current Market Trends 2024-2025
  6. Future of Serverless Computing
  7. Getting Started with Serverless
  8. Conclusion and Q&A

What is Serverless Computing?

Serverless computing is a cloud architecture that allows organizations to get on-demand access to computing resources without managing underlying infrastructure

Key Concept

It's not actually "without servers" - servers still exist, but they're abstracted away from developers

Focus Shift

Developers focus on writing code, not managing infrastructure

Event-Driven

Functions execute in response to events and scale automatically

How Serverless Works

1

Event Trigger

HTTP request, file upload, timer, or other event occurs

2

Function Execution

Cloud provider spins up a container and executes your function

3

Automatic Scaling

Multiple instances created automatically based on demand

4

Pay-Per-Use

You only pay for the compute time you actually use

Serverless vs Traditional Computing

Aspect
Traditional
Serverless
Server Management
Manual provisioning & maintenance
Fully managed by cloud provider
Scaling
Manual or auto-scaling setup
Automatic and instant
Pricing
Pay for allocated capacity
Pay only for actual usage
Control
Full control over infrastructure
Limited infrastructure control

Key Components: FaaS vs BaaS

Function as a Service (FaaS)

  • Execute code in response to events
  • Stateless functions
  • Auto-scaling execution
  • Examples: AWS Lambda, Azure Functions

Backend as a Service (BaaS)

  • Managed backend services
  • Databases, authentication, storage
  • API endpoints
  • Examples: Firebase, AWS DynamoDB

Major Serverless Platforms

AWS Lambda

15 min max execution Multiple languages Extensive integrations

Azure Functions

10 min max execution .NET focused Hybrid cloud support

Google Cloud Functions

9 min max execution JavaScript/Python Firebase integration

Benefits of Serverless Computing

💰

Cost Efficiency

Pay only for actual compute time used, not idle time

Automatic Scaling

Instantly scales up or down based on demand

🔧

Reduced Operational Overhead

No server management, patching, or maintenance

🚀

Faster Development

Focus on business logic, not infrastructure

Challenges and Limitations

❄️

Cold Starts

Initial delays when functions haven't been used recently

🔒

Vendor Lock-in

Tight coupling with specific cloud provider services

⚙️

Limited Customization

Less control over underlying infrastructure

🛡️

Security Concerns

Shared infrastructure and limited visibility

Serverless Architecture Patterns

Event-Driven Architecture

Functions triggered by events from various sources

API Gateway Pattern

RESTful APIs backed by serverless functions

Pub-Sub Pattern

Publish-subscribe messaging for loose coupling

CQRS Pattern

Command Query Responsibility Segregation

Common Use Cases

Event-Driven Applications

File processing, real-time data streaming, webhooks

APIs and Backends

RESTful APIs, mobile app backends, microservices

Data Processing

ETL pipelines, batch processing, real-time analytics

IoT Applications

Device data ingestion, sensor data processing

Real-World Examples

Netflix

Uses AWS Lambda for encoding video files and managing platform modifications

Coca-Cola

Implemented serverless for IoT-powered smart vending machines

FINRA

Uses AWS Lambda for processing massive amounts of trading data

Security in Serverless

Shared Responsibility Model

Cloud provider manages infrastructure security, you manage application security

Function-Level Security

IAM roles, least privilege access, secure coding practices

API Gateway Security

Authentication, authorization, rate limiting, input validation

Best Practices

Environment variables for secrets, secure dependencies, monitoring

Best Practices

Design for Statelessness

Each function execution should be independent

Optimize Execution Time

Minimize cold starts, efficient algorithms

Implement Monitoring

Logging, metrics, distributed tracing

Handle Cold Starts

Keep functions warm, optimize initialization

Monitoring and Debugging

CloudWatch

Metrics, logs, alarms for AWS Lambda functions

Distributed Tracing

Track requests across multiple services

Logging Strategies

Structured logging, correlation IDs

Debugging Challenges

Limited local debugging, ephemeral environments

Cost Optimization

Pay-Per-Use Benefits

No idle time charges, automatic scaling cost benefits

Avoiding Over-Provisioning

No need to provision for peak capacity

Monitoring Usage

Track execution time, memory usage, request counts

Cost Management

Set budgets, alerts, optimize function memory

Current Market Trends 2024-2025

Market Growth

20.7%

CAGR (Compound Annual Growth Rate)

2024 Market Size

$11.32B

Current market valuation

2025 Projection

$13.67B

Expected market size

2031 Forecast

$56.41B

Projected market size

• Increased adoption in AI/ML workloads

• Growing integration with edge computing

• Rise of multi-cloud serverless solutions

Future of Serverless Computing

Emerging Trends

WebAssembly, event-driven architectures, low-code platforms

Multi-Cloud Solutions

Serverless frameworks supporting multiple cloud providers

Edge Computing Integration

Serverless functions at the edge for reduced latency

Container Support

Serverless containers for longer-running applications

Getting Started with Serverless

1

Choose a Platform

AWS Lambda, Azure Functions, or Google Cloud Functions

2

Learn the Basics

Understand event-driven architecture and stateless design

3

Development Tools

Serverless Framework, SAM, Terraform for infrastructure

4

Start Small

Begin with simple functions and gradually build complexity

Conclusion

Key Takeaways

  • Serverless computing abstracts infrastructure management
  • Offers cost efficiency through pay-per-use model
  • Enables rapid development and automatic scaling
  • Best suited for event-driven applications
  • Growing market with bright future prospects

Thank You!

Questions & Discussion