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
파이썬으로 살펴보는 아키텍처 패턴
199
9
장
메시지 버스를 타고 시내로 나가기
모든 게
너무 과한
것 같은가?
점진적으로 이런
방향으로 나가보자.
준비 리팩터링
Preparatory
Refactoring
(
https
://
oreil
.
ly
/
W3RZM
)
워크플로를 따를 것이다. 준비 리팩터링은 “변경하기
쉽게 코드를 준비해야 한다. 그 후 쉬워진 변경을 실제로 수행하자”라고 정리할 수 있다.
1.
서비스 계층을 이벤트 핸들러로 리팩터링한다. 이벤트가 시스템에 대한 입력을 기술
하는 방법에 익숙할 수 있다. 특히 기존
services
.
allocate
()
함수는
Allocation
Required
라는 이벤트의 핸들러가 된다.
2.
BatchQuantityChanged
이벤트를 시스템에 넣고
Allocated
이벤트가 발생하는지 검
사하는 엔드투엔드 테스트를 만든다.
3.
개념적으로 구현은 아주 단순하다.
BatchQuantityChanged
에 대한 새로운 핸들러를 만
들고, 이 핸들러 구현은
AllocationRequired
이벤트를 발생한다. 그리고
API
에서 사
용하는 할당 핸들러와 같은 핸들러가 이
AllocationRequired
이벤트를 처리한다.
이 과정에서 메시지 버스와
UoW
를 약간 변경해서 새 이벤트를 메시지 버스에 넣는 책임을 버
스 자체로 옮긴다.
9.2
서비스 함수를 메시지 ...
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