Build, Deploy and Scale Modern Applications with TypeScript, Serverless and AI-Powered Workflows
Introduction: The Full-Stack Problem and Its Solution
Chapter 1: The Amplify Landscape: From Gen 1 to Gen 2
- The problem with traditional full-stack tooling
- AWS Amplify Gen 1: what worked, what did not
- Introducing Amplify Gen 2: a new paradigm
- How Gen 2’s convention-driven workflow changes everything
- When to choose Amplify vs. other AWS services
- Troubleshooting: common setup errors
Chapter 2: Setting Up Your Development Environment
- Prerequisites and installation
- Initializing a new Amplify project
- Configuration files: what gets committed and what gets generated
- Local development with the Amplify sandbox
- TypeScript project setup and best practices
Chapter 3: Data Modeling and Serverless Databases
- The shift from relational to document/graph models
- Defining schemas with the Amplify Schema Language
- Built-in indexing, search and query patterns
- Data modeling best practices and pitfalls
- Case study: building a task management backend
- Troubleshooting: data modeling and schema errors
- Hands-on project: building a task management application
Chapter 4: Authentication and Authorization at Scale
- Amplify Auth architecture overview
- Email/password, magic links and social providers
- Multi-factor authentication and passkeys
- Role-based access control with Cognito Identity Pools
- Authorization policies and fine-grained permissions
- Hands-on project: building an auth-protected application
- Troubleshooting: authentication and authorization errors
Chapter 5: API Design: GraphQL, REST and Serverless Functions
- The Amplify API abstraction layer
- GraphQL schema design and code generation
- REST API endpoints with Lambda triggers
- Serverless functions (Lambda) for custom logic
- Choosing the right API style for your use case
Chapter 6: Real-Time Applications with WebSockets and Live Data
- The architecture of real-time in Amplify
- Subscription-based data streaming
- Conflict resolution and offline-first patterns
- Building a collaborative document editor
- Hands-on project: building a collaborative document editor
- Troubleshooting: real-time subscription errors
- Performance considerations for high-frequency updates
Chapter 7: Storage, File Uploads and Media Processing
- Amplify Storage architecture and S3 integration
- Signed URL-based uploads vs. direct uploads
- Image and video processing with Lambda triggers
- Access control patterns for user-specific content
- Building a media management service
- Hands-on project: building a media gallery application
- Troubleshooting: storage and upload errors
Chapter 8: Production Deployment and CI/CD Pipelines
- Amplify Hosting vs. custom pipelines
- Automated branch-based deployments
- Environment isolation strategies
- Custom domain and SSL configuration
- Blue-green deployments and rollback strategies
Chapter 9: Security Hardening and Compliance
- Threat model for serverless applications
- Data encryption at rest and in transit
- IAM policies and least privilege
- OWASP Top 10 for Amplify applications: mitigations and code examples
- Compliance frameworks (SOC 2, HIPAA, GDPR)
- Actionable compliance configuration templates
Chapter 10: Monitoring, Debugging and Observability
- CloudWatch integration and custom metrics
- Distributed tracing with X-Ray
- Log aggregation and structured logging
- Production-grade troubleshooting: monitoring and debugging workflows
- Error tracking and alerting strategies
- Building a production readiness checklist
- Troubleshooting: monitoring and observability errors
- Hands-on project: deploying with CI/CD
- Troubleshooting: deployment and CI/CD errors
Chapter 11: Performance Optimization and Cost Management
- Cold start mitigation strategies
- Query and index optimization
- Caching layers and CDN integration
- Cost modeling for Amplify applications
- Right-sizing resources without over-provisioning
- Troubleshooting: performance and cost errors
- Production-grade troubleshooting: performance and cost optimization workflows
Chapter 12: Advanced Architectures and Real-World Case Studies
- Multi-tenant SaaS architecture on Amplify
- Event-driven microservices with Amplify
- AI/ML integration patterns (Bedrock, SageMaker)
Chapter 13: Testing Amplify Applications
- Why testing matters in serverless development
- Unit testing Lambda functions with Jest
- Mocking AWS SDK calls
- Integration testing Lambda functions with LocalStack
- Testing GraphQL APIs against the sandbox
- Contract testing: ensuring API shape stability
- End-to-end testing with Cypress
- Testing authorization rules
- Integrating tests into CI/CD
- Chapter summary
Chapter 14: Offline-First and Progressive Web Apps
- The offline-first challenge in Amplify Gen 2
- Architectural overview
- Local storage with IndexedDB and Dexie.js
- The sync engine
- Conflict resolution strategies
- Service workers and app shell caching
- Making the UI offline-aware
- Mobile offline with React Native
- Testing offline behavior
- Chapter summary
Chapter 15: Mobile Development with Amplify Gen 2
- Building mobile apps with Amplify: options and trade-offs
- Setting up a React Native + Expo project
- Sharing the backend between web and mobile
- Authentication in mobile apps
- Using GraphQL from mobile apps
- Real-time subscriptions on mobile
- Offline support for mobile
- Testing mobile apps
- Chapter summary
Chapter 16: The Amplify AI Kit and AI-Powered Workflows
- Introduction to the Amplify AI Kit
- Getting started: setting up the AI Kit
- Building a chat interface with conversation routes
- Generation routes for structured AI operations
- Building RAG applications with Amplify AI Kit
- Security and cost considerations
- Chapter summary
Chapter 17: Advanced Data Patterns, Search and Migration
- DynamoDB transactions and consistency patterns
- Full-text search with OpenSearch integration
- Migrating from Amplify Gen 1 to Gen 2
- Prerequisites
- Migration steps
- Feature parity considerations
- Chapter summary
Chapter 18: Comparing Amplify Gen 2 Against Alternatives
- Feature-by-feature comparison matrix
- Amplify Gen 2 vs. Next.js + Prisma
- Amplify Gen 2 vs. Supabase
- Amplify Gen 2 vs. Firebase
- Decision matrix: which tool to choose?
- The verdict: Amplify Gen 2’s place in the ecosystem
Hands-On Project: Building a REST + GraphQL Hybrid API
- Troubleshooting: API and Lambda errors
- The future of full-stack development on AWS
- Troubleshooting: advanced architecture patterns
