AWS Community Day Kochi 2019 - Technical Session
Complete Media Content Management System and Website on Serverless by Anoop Mohan, Associate Director Of Technology at Asianet
4. Why Serverless?
Scalability Cost Faster Deployment Monitoring Infrastructure
- Sudden spikes in traffic
- Billing on unused resource - EC2 and RDS
- Late night deployments
- Validation on the incoming requests
- Uptime on services
- Infrastructure Support team has to be involved in many of the operations
5. • Identifying services
• Integrating services
• Converting the application to discrete functions
• Monitoring tools
• Deployments
• Migration of existing data
Architecture and development
6. Authorization of backend users
Cognito
User Pool
CMS
Application
API
Gateway
CMS
API
CloudFront
Cognito
Identity Pool
S3
For storing photos and videos
DynamoDB Lambda
Elastic
Search
Populating to ES to enable search
Lambda S3
Sitemaps and RSS feeders
CMS User
8. Layout 1
Parameters
Slot 1 Widget 1
Slot 2 Widget 2
Slot 3 Widget 3
Component 1
Parameters
Widget
Configuration for Layout
Configuration for Component
Page Structure
top-1
left-1 center-1 right-1
bottom-1
Component
Data fetchers
Renders
Renders portion of the
page into a slot
Page Architecture
9. • Code review - quality and execution time
• Data flow review
• Set up an invocation count alarm for each Lambda function and set
notifications.
• Setting up Billing alerts to monitor resource usage.
• Naming for lambda function
• Multiple programming language support
• Group lambda functions using tags
• Avoid file operation inside lambda function
Some Take Aways…