Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

min-ki/python-architecture-patterns

Repository files navigation

python-architecture-patterns

파이썬으로 살펴보는 아키텍처 패턴을 읽고 실습한 레포지토리

실습 내용은 cosmicpython에서 확인하실 수 있습니다.

가상환경 구성

  1. python -m venv .venv && source .venv/bin/activate
  2. pip install pytest
  3. pip install requirements.txt
  4. pip install -e src/

Makefile 구성

  • pytest --tb=short 에서 tb는 traceback을 의미한다. 여기서 사용한 short은 짧은 traceback 포맷을 사용하겠다는 의미이다.
  • entr: https://github.com/eradman/entr

docker-compose 구성

  • docker-compose up -d
  • mailhog: 이메일 전송 테스트 도구
  • postgres: 데이터베이스
  • redis: 메시지 브로커

목차

Part 1: Building an Architecture to Support Domain Modeling

  • 1. Domain Modeling
  • 2. Repository Pattern
  • 3. A Brief Interlude: On Coupling and Abstractions
  • 4. Our First Use Case: Flask API and Service Layer
  • 5. TDD in High Gear and Low Gear
  • 6. Unit of Work Pattern
  • 7. Aggregates and Consistency Boundaries

Part 2: Event-Driven Architecture

  • 8. Events and the Message Bus
  • 9. Going to Town on the Message Bus
  • 10. Commands and Command Handler
  • 11. Event-Driven Architecture: Using Events to Integrate Microservices
  • 12. Command-Query Responsibility Segregation (CQRS)
  • 13. Dependency Injection (and Bootstrapping)

About

파이썬으로 살펴보는 아키텍처 패턴

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /