Optymalizacja cold startów
// Prompt: "Optimize Lambda cold starts:// - Minimize bundle size// - Lazy loading// - Connection pooling// - Provisioned concurrency"Przyspiesz rozwój serverless z Cursor i Claude Code. Te wzorce obejmują AWS Lambda, Vercel, Cloudflare Workers, architektury sterowane zdarzeniami i najlepsze praktyki cloud-native zoptymalizowane pod asystowany przez AI development.
claude "Initialize serverless framework project"// Prompt dla funkcji Lambda:"Create Lambda function for image processing:- S3 trigger for uploads- Image resizing with Sharp- Multiple output formats- Error handling and retries- CloudWatch logging- X-Ray tracing"
// Wygenerowana struktura:functions/ imageProcessor/ handler.ts config.yml tests/ shared/ utils/ types/Optymalizacja cold startów
// Prompt: "Optimize Lambda cold starts:// - Minimize bundle size// - Lazy loading// - Connection pooling// - Provisioned concurrency"Obsługa błędów
// Prompt: "Add Lambda error handling:// - Dead letter queues// - Retry policies// - Circuit breakers// - Graceful degradation"// Prompt dla Vercel Edge function:"Create Vercel Edge function for:- Geographic routing- A/B testing- Request transformation- Authentication at edge- Response caching- Streaming responses"// Trasa API Next.js:"Create API route with:- Request validation- Database connection- Rate limiting- CORS handling- Error responses"// Edge middleware:"Implement middleware for:- Auth verification- Request logging- Geolocation- Feature flags"// Prompt dla Cloudflare Worker:"Create Worker for API gateway:- Request routing- Authentication- Rate limiting with Durable Objects- Cache API usage- KV storage integration- R2 bucket access"// Prompt dla architektury sterowanej zdarzeniami:"Design event processing system with:- SNS/SQS integration- Event routing rules- Schema validation- Dead letter handling- Event replay capability- Monitoring and alerting"Event Sourcing
Zaimplementuj z pomocą AI:
// Prompt projektowania DynamoDB:"Design DynamoDB schema for:- Single table design- GSI optimization- Composite keys- Transactions- Streams processing- Auto-scaling"-- Aurora Serverless:"Configure Aurora Serverless v2:- Connection pooling- Data API usage- Scaling policies- Backup strategies"// Konfiguracja FaunaDB:"Implement FaunaDB with:- ACID transactions- Global distribution- Temporal queries- Access control"