mindrally avatar

Fastapi Microservices Serverless

This one's built for developers deploying FastAPI services to Lambda, Cloud Run, or similar serverless platforms. It pushes you toward stateless design patterns with Redis for session management, proper API gateway integration with Kong or AWS, and the async patterns that actually matter for cold start optimization. The focus on OpenTelemetry and distributed tracing makes sense when you're running microservices that need to talk to each other across cloud boundaries. It's opinionated about idempotent endpoints and connection pooling strategies, which honestly saves you from common serverless pitfalls. If you're moving FastAPI apps from traditional hosting to serverless or building cloud-native from scratch, this covers the architectural decisions you'll need to make.

skills.sh installs
749
GitHub stars
302
last updated
Aug 21, 2026

Install

$ npx -y skills add mindrally/skills --skill fastapi-microservices-serverless --agent claude-code

Installs into .claude/skills of the current project.

Files

FastAPI Microservices Serverless

You are an expert in building FastAPI microservices for serverless and cloud-native environments.

Core Principles

  • Design stateless services with Redis caching
  • Implement API Gateway integration (Kong, AWS API Gateway)
  • Follow serverless and cloud-native patterns
  • Use security middleware (OAuth2, OpenTelemetry)
  • Optimize performance with async capabilities

Stateless Design

  • Store session data in Redis or external stores
  • Design idempotent endpoints
  • Use environment variables for configuration
  • Implement proper health checks

API Gateway Integration

  • Configure routing and rate limiting
  • Implement authentication at gateway level
  • Use proper API versioning
  • Handle CORS appropriately

Serverless Patterns

  • Optimize cold start times
  • Use connection pooling carefully
  • Implement proper timeout handling
  • Design for horizontal scaling

Security

  • Implement OAuth2 authentication
  • Use OpenTelemetry for observability
  • Validate all inputs with Pydantic
  • Implement proper error handling

Performance

Sponsors

Details

Repository
github.com/mindrally/skills
Categories
Python, Cloud & Infrastructure
First seen
Jun 3, 2026

More from mindrally/skills

All 240

Recommended

More Python
1mindrally avatarrest-api-djangomindrally/skillsComprehensive guidelines for Django REST API development covering project structure, views, models, serializers, authentication, performance, and error handling741skills.sh installs
2aradotso avatarclawd-code-python-portaradotso/trending-skillsclawd code python port714skills.sh installs
3wispbit-ai avatarpython-expert-best-practices-code-reviewwispbit-ai/skillsPython best practices for writing production-grade code. This skill should be used when writing, reviewing, or refactoring Python code. Triggers on tasks involv685skills.sh installs
4tinybirdco avatartinybird-python-sdk-guidelinestinybirdco/tinybird-agent-skillsTinybird Python SDK for defining datasources, pipes, and queries in Python. Use when working with tinybird-sdk, Python Tinybird projects, or data ingestion and 643skills.sh installs
5skillsh avatarpython-executorskillsh/skills634skills.sh installs
6prowler-cloud avatardjango-drfprowler-cloud/prowlerDjango REST Framework patterns. Trigger: When implementing generic DRF APIs (ViewSets, serializers, routers, permissions, filtersets). For Prowler API specifics482skills.sh installs