Skip to Content
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
For Enterprise
For Government
For Higher Ed
For Individuals
For Marketing
Explore Skills
Cloud Computing
Microsoft Azure
Amazon Web Services (AWS)
Google Cloud
Cloud Migration
Cloud Deployment
Cloud Platforms
Data Engineering
Data Warehouse
SQL
Apache Spark
Microsoft SQL Server
MySQL
Kafka
Data Lake
Streaming & Messaging
NoSQL Databases
Relational Databases
Data Science
Pandas
R
MATLAB
SAS
D3
Power BI
Tableau
Statistics
Exploratory Data Analysis
Data Visualization
AI & ML
Generative AI
Machine Learning
Artificial Intelligence (AI)
Deep Learning
Reinforcement Learning
Natural Language Processing
TensorFlow
Scikit-Learn
Hyperparameter Tuning
MLOps
Programming Languages
Java
JavaScript
Spring
Python
Go
C#
C++
C
Swift
Rust
Functional Programming
Software Architecture
Object-Oriented
Distributed Systems
Domain-Driven Design
Architectural Patterns
IT/Ops
Kubernetes
Docker
GitHub
Terraform
Continuous Delivery
Continuous Integration
Database Administration
Computer Networking
Operating Systems
IT Certifications
Security
Network Security
Application Security
Incident Response
Zero Trust Model
Disaster Recovery
Penetration Testing / Ethical Hacking
Governance
Malware
Security Architecture
Security Engineering
Security Certifications
Design
Web Design
Graphic Design
Interaction Design
Film & Video
User Experience (UX)
Design Process
Design Tools
Business
Agile
Project Management
Product Management
Marketing
Human Resources
Finance
Team Management
Business Strategy
Digital Transformation
Organizational Leadership
Soft Skills
Professional Communication
Emotional Intelligence
Presentation Skills
Innovation
Critical Thinking
Public Speaking
Collaboration
Personal Productivity
Confidence / Motivation
Features
All features
Verifiable skills
AI Academy
Courses
Certifications
Interactive learning
Live events
Superstreams
Answers
Insights reporting
Radar Blog
Buy Courses
Plans
Sign In
Try Now
O'Reilly Platform
book
파이썬으로 살펴보는 아키텍처 패턴
by
오현석
,
해리 퍼시벌
,
밥 그레고리
June 2021
Beginner to intermediate
356 pages
8h 13m
Korean
Hanbit Media, Inc.
Content preview from
파이썬으로 살펴보는 아키텍처 패턴
195
9
장
메시지 버스를 타고 시내로 나가기
이번 장에서는 애플리케이션의 내부 구조에서 이벤트를 더 근본적인 요소로 만드는 것으로 시
작한다. [그림
9
-
1
]의 현재 상태로부터 시작한다.
플라스크
서비스 계층
서비스
도메인
핸들러
UoW
저장소
메시지 버스
send.mail()
발생한 이벤트 수집
이벤트 발행
이벤트 전달
이벤트:
OutOfStock
(재고 없음)
그림
9-1
변경 전: 메시지 버스는 선택적인 추가 사항
메시지 버스를 타고 시내로 나가기
CHAPTER
9
196
2
부
이벤트 기반 아키텍처
바뀐 상황은 [그림
9
-
2
]와 같다. 여기서 모든 내용이 메시지 버스를 통해 이동하고, 앱은 근본
적으로 메시지 처리기로 바뀐다.
플라스크
메시지 버스
이벤트 넣음
이벤트 전달
발행한 이벤트 수집
핸들러(이전 서비스 포함)
발생한 이벤트 모음
도메인
저장소
서비스 계층
그림
9-2
이제는 메시지 버스가 서비스 계층의 주 진입 지점이다
TIP
_
이번 장의 코드는 깃허브의
chapter
_
09
_
all
_
messagebus
브랜치에 있다(
https
://
oreil
.
ly
/
oKNkn
).
git clone https://github.com/cosmicpython/code.git ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial
You might also like
효율적인 리눅스 명령어 사용의 기술
Daniel J Barrett
쿠버네티스를 활용한 클라우드 네이티브 데브옵스
최경현, 저스틴 도밍거스, 존 어런들
개발자를 위한 실전 선형대수학
마이크 X 코헨
개발자를 위한 필수 수학
토머스 닐드
Publisher Resources
ISBN: 9791162244319