FastAPI + Claude API 스트리밍 프로덕션 백엔드 구축 — SSE, 재시도, 에러 복구 실전 가이드
FastAPI와 Anthropic SDK로 프로덕션 수준의 스트리밍 AI 백엔드를 구축하는 완전 가이드. SSE 스트리밍 엔드포인트, 레이트 리밋 지수 백오프 재시도, 에러 분류 전략, Docker 배포까지 단계별로 정리합니다.
jangwook.net
Personal technical notes on AI agents, automation, developer tools, and the process of building software.
Latest Notes
The root page stays intentionally small. Choose a language, then read the full archive and related posts there.
AI 에이전트, 자동화, 개발 도구, 소프트웨어 제작 과정을 한국어로 기록합니다.
FastAPI와 Anthropic SDK로 프로덕션 수준의 스트리밍 AI 백엔드를 구축하는 완전 가이드. SSE 스트리밍 엔드포인트, 레이트 리밋 지수 백오프 재시도, 에러 분류 전략, Docker 배포까지 단계별로 정리합니다.
슬래시 명령어(.claude/commands/)로 작업을 정의하고, settings.json 훅으로 이벤트에 연결하고, 서브에이전트(.claude/agents/)에게 위임하는 3단계 Claude Code 자동화 패턴을 실제 블로그 자동화 시스템으로 설명합니다.
anthropic 0.100.0과 openai 2.36.0을 직접 설치해 비교합니다. 타입 수 408 vs 230, 에러 계층 설계 차이, 스트리밍 구현 패턴, 툴 호출 포맷, SDK별 고유 기능까지 Python 코드로 직접 검증한 개발자를 위한 실전 비교 가이드입니다.
Personal notes on AI agents, automation, developer tools, and building software.
A complete guide to building a production-grade streaming AI backend with FastAPI and the Anthropic SDK. Covers SSE streaming endpoints, rate limit exponential backoff retry, error classification strategy, and Docker deployment step by step.
A practical guide to building Claude Code automation pipelines: define tasks with slash commands (.claude/commands/), connect them to events via hooks (settings.json), and delegate to specialized subagents (.claude/agents/).
I installed anthropic 0.100.0 and openai 2.36.0 side by side in a sandbox and dug into the internals. Type count 408 vs 230, error class hierarchies, streaming implementations, tool call formats, and SDK-exclusive features — all analyzed at the code level.
AIエージェント、自動化、開発ツール、ソフトウェア開発の記録です。
FastAPIとAnthropic SDKでプロダクションレベルのストリーミングAIバックエンドを構築する完全ガイド。SSEエンドポイント実装、レートリミット指数バックオフリトライ、エラー分類戦略、Dockerデプロイまでステップごとに解説します。
スラッシュコマンド(.claude/commands/)でタスクを定義し、settings.jsonフックでイベントに連結し、サブエージェント(.claude/agents/)に委任する3ステップのClaude Code自動化パターンを実際のブログ自動化システムで解説します。
anthropic 0.100.0とopenai 2.36.0をサンドボックスで実際にインストールして比較。型数408 vs 230、エラー階層、ストリーミング実装、ツール呼び出しフォーマット、SDK固有機能をコードレベルで分析した実践的比較ガイド。
记录 AI 代理、自动化、开发工具和软件构建过程。
使用FastAPI和Anthropic SDK构建生产级流式AI后端的完整指南。涵盖SSE流式端点实现、限速指数退避重试、错误分类策略以及Docker部署,逐步讲解每个环节。
通过斜线命令(.claude/commands/)定义任务,用settings.json Hook连接事件,委托给子代理(.claude/agents/)执行。本文通过实际博客自动化系统,详解Claude Code三步自动化模式。
在沙箱中同时安装anthropic 0.100.0和openai 2.36.0并深入比较。类型数量408 vs 230、错误类层级、流式实现、工具调用格式、SDK专有功能——全部从代码层面分析的实战比较指南。