Message Broker 핵심 개념 총정리 | Redis, RabbitMQ, Celery

00:00 도입 — 이 강의에서 다룰 내용 00:45 동기 처리의 문제 (8초 대기) 01:17 인메모리 비동기의 한계 02:21 왜 Message Broker가 필요한가? 03:17 메시지 흐름과 핵심 용어 05:10 신뢰성 3요소 (ACK, 멱등성, Persistence) 06:59 실패 처리 — 재시도와 DLQ 07:40 Result Backend — 상태 관리와 TTL 10:32 결과 조회 패턴 — Polling, Callback, WebSocket 13:00 워크플로우 — Chain과 Chord 15:36 Redis vs RabbitMQ 한눈에 비교 17:54 RabbitMQ의 핵심 — Exchange 타입 비교 18:55 시나리오별 추천과 실무 조합 19:37 Redis 안정성 설정 20:33 의사결정 플로우차트 21:38 Kafka?? 22:09 전체 요약 및 마무리 ✅ 왜 Message Broker가 필요한가? • 동기 처리 8초 문제 → 비동기로 해결 • 인메모리 방식(asyncio, goroutine)의 4가지 한계 • 서버 재시작 → 유실, 서버 3대 → 분리 불가 ✅ Message Broker 핵심 개념 • Producer → Broker → Worker 흐름 • Queue 분리와 Exchange 라우팅 • ACK, 멱등성, Persistence — 신뢰성 3요소 • 재시도 + Exponential Backoff + DLQ ✅ Result Backend • Task 상태 관리 (PENDING → STARTED → SUCCESS/FAILURE) • AsyncResult로 상태 조회 (Polling 패턴) • TTL 설정 — 하루 100만 건이면 결과만 1GB • Chain(순차 실행)과 Chord(병렬 후 합치기) ✅ Redis vs RabbitMQ — 뭘 써야 하는가? • Redis: LPUSH/BRPOP으로 큐 구현, 빠르고 간편 • RabbitMQ: Exchange → Queue 전용 설계, ACK 기반 안전성 • 시나리오별 추천과 의사결정 플로우차트 • 실무 조합 3가지 (올인원 Redis / 안정성 분리 / 완전 분리) 🎯 이런 분들께 추천합니다: Celery를 처음 쓰는 Python 백엔드 개발자 "Redis랑 RabbitMQ 뭐가 다른 거야?" 궁금한 분 비동기 작업 처리 개념을 한번에 정리하고 싶은 분 Django/FastAPI 프로젝트에 비동기 작업을 도입하려는 팀 💡 이 영상의 코드는 Celery(Python)를 사용하지만, Producer, Broker, Worker, Queue 개념은 BullMQ(Node.js), Asynq(Go) 등 어떤 도구든 동일합니다. #MessageBroker #Celery #Redis #RabbitMQ #비동기처리 #ResultBackend #Python #Django #FastAPI #백엔드 #TaskQueue #분산시스템

Django vs FastAPI 차이점 | CGI부터 WSGI, ASGI까지
▶︎

Django vs FastAPI 차이점 | CGI부터 WSGI, ASGI까지

LLMOps 12강 - 양자화(Quantization)
▶︎

LLMOps 12강 - 양자화(Quantization)

Jesus & Coffee verse by verse study in Philemon (intro) ✝️❤️🙌
▶︎

Jesus & Coffee verse by verse study in Philemon (intro) ✝️❤️🙌

EP01. Easily understand the operation process of #RAG!
▶︎

EP01. Easily understand the operation process of #RAG!

They Lied to You About AI (This Study Proves It)
▶︎

They Lied to You About AI (This Study Proves It)

[10일차] Spark + Iceberg 실전 통합 | CDC · MERGE INTO · 보안 파이프라인 구축
▶︎

[10일차] Spark + Iceberg 실전 통합 | CDC · MERGE INTO · 보안 파이프라인 구축

DBMS 안정적 운영 (3) - Partitioning vs Sharding | 대용량 데이터 처리
▶︎

DBMS 안정적 운영 (3) - Partitioning vs Sharding | 대용량 데이터 처리

AI 정신증: AI와 대화하다 망상에 빠진 사람들 - BBC News 코리아
▶︎

AI 정신증: AI와 대화하다 망상에 빠진 사람들 - BBC News 코리아

"Just go crazy for 3 years": The real survival formula for the AI ​​era told by the chairman of a...
▶︎

"Just go crazy for 3 years": The real survival formula for the AI ​​era told by the chairman of a...

The Moving Average Trading Method of the 100 Billion Won Day Trading Genius: Just Do This Like Crazy
▶︎

The Moving Average Trading Method of the 100 Billion Won Day Trading Genius: Just Do This Like Crazy

HD Flower TV Screensaver , Framed Art Painting, TV Art - Nas Gallery
▶︎

HD Flower TV Screensaver , Framed Art Painting, TV Art - Nas Gallery

🚗 BYD : The biggest SCAM of the car industry ?
▶︎

🚗 BYD : The biggest SCAM of the car industry ?

대규모 예매 시스템에서 대기열에 Kafka가 아닌 Redis를 사용하는 이유
▶︎

대규모 예매 시스템에서 대기열에 Kafka가 아닌 Redis를 사용하는 이유

"Your labor will lose its value as early as 3 years from now." The end of labor brought about by ...
▶︎

"Your labor will lose its value as early as 3 years from now." The end of labor brought about by ...

최태원 SK그룹 회장 겸 대한상공회의소 회장이 말하는 'AI 시대의 미래와 대한민국 생존 전략'ㅣ KBS 다큐 인사이트 260528 방송
▶︎

최태원 SK그룹 회장 겸 대한상공회의소 회장이 말하는 'AI 시대의 미래와 대한민국 생존 전략'ㅣ KBS 다큐 인사이트 260528 방송

[9일차] Spark SQL & Structured Streaming 완전 이해 | 성능 튜닝 실전
▶︎

[9일차] Spark SQL & Structured Streaming 완전 이해 | 성능 튜닝 실전

The Structural Secret Behind Single-Threaded Redis Achieving Hundreds of Thousands of QPS | Membe...
▶︎

The Structural Secret Behind Single-Threaded Redis Achieving Hundreds of Thousands of QPS | Membe...

Andrej Karpathy: From Vibe Coding to Agentic Engineering w/ Stephanie Zhan
▶︎

Andrej Karpathy: From Vibe Coding to Agentic Engineering w/ Stephanie Zhan

비개발자가 자주 묻는 Claude Code FAQ 5개 | Claude Code, 터미널, IDE, CLI 개념 정리
▶︎

비개발자가 자주 묻는 Claude Code FAQ 5개 | Claude Code, 터미널, IDE, CLI 개념 정리

기업에서의 LLM 활용을 위한 Palantir AIP 솔루션-팔란티어 서지숙
▶︎

기업에서의 LLM 활용을 위한 Palantir AIP 솔루션-팔란티어 서지숙