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
파이썬으로 살펴보는 아키텍처 패턴
217
10
장
커맨드와 커맨드 핸들러
이전 장에서는 시스템 입력을 표현하기 위해 이벤트를 사용하는 방법에 대해 이야기하고, 애플
리케이션을 메시지 처리 기계로 변환했다.
이를 달성하기 위해 모든 유스 케이스 함수를 이벤트 핸들러로 변경했다.
API
는 새 배치를 만
드는
POST
를 받으면 새로운
BatchCreated
이벤트를 만들어서 내부 이벤트처럼 처리한다.
이런 처리 방식은 직관에 어긋나는 것처럼 보인다. 무엇보다 배치는 아직 생성되지도 않아서
API
를 호출한다. 이벤트와 같은 메시지 버스를 다루지만 약간 다른 규칙으로 처리하는 커맨드
를 도입해 개념상 이상한 부분을 수정한다.
TIP
_
이번 장의 코드는 깃허브의
chapter
_
10
_
commands
브랜치에 있다(
https
://
oreil
.
ly
/
U
_
VGa
).
git clone https://github.com/cosmicpython/code.git
cd code
git checkout chapter_10_commands
# 또는 10장을 따라 하고 싶다면 9장을 확인하길 바란다.
git checkout chapter_09_all_messagebus
커맨드와 커맨드 핸들러
CHAPTER
10
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