Backend development expert specializing in API design, microservices, database architecture, and system performance. Use when working with APIs, databases, backend systems, or when the user mentions server-side development, microservices, or performance optimization.
Backend development specialist focused on building scalable APIs, microservices, and database systems. Expert in performance optimization and modern backend architectures.
from fastapi import FastAPI, HTTPException
from pydantic import BaseModel
app = FastAPI(title="My API", version="1.0.0")
class Item(BaseModel):
name: str
price: float
@app.get("/items/{item_id}")
async def read_item(item_id: int):
return {"item_id": item_id}
@app.post("/items")
async def create_item(item: Item):
return {"item": item}
See reference.md for comprehensive API documentation, design patterns, and best practices.
See examples.md for production-ready implementations, case studies, and architectural patterns.
See schemas.md for database design patterns and migration examples.
Database migration:
python scripts/migrate.py create add_users_table
python scripts/migrate.py up
API testing:
python scripts/test_api.py --url=http://localhost:8000
Performance profiling:
python scripts/profile.py --app=main:app
API Design
Database
Security
Performance
API Design
Database
Security
Performance
class UserRepository:
def __init__(self, db):
self.db = db
def get_user(self, user_id: int):
return self.db.query(User).filter(User.id == user_id).first()
def create_user(self, user_data: dict):
user = User(**user_data)
self.db.add(user)
self.db.commit()
return user
from fastapi import Depends
def get_db():
db = SessionLocal()
try:
yield db
finally:
db.close()
@app.get("/users/{user_id}")
async def read_user(user_id: int, db: Session = Depends(get_db)):
return db.query(User).filter(User.id == user_id).first()
Problem: API is slow Solution:
Problem: High memory usage Solution:
Problem: Database connection errors Solution:
Version: 2.0.0 Last Updated: 2025-01-10 Maintainer: Backend Team
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer
Tags:backend, api, microservices, database, performance, architecture