Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Домашняя работа по первой неделе (2-3 урок) #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions docs/week-1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Домашняя работа за первую неделю (2 и 3 уроки)

# Event Storming

![event storming](./event%20storming.jpg)

Более подробно и в лучшем качестве можно глянуть в [миро](https://miro.com/app/board/uXjVPRLzxqU=/).

# Модель данных

![data model](./data%20model.png)

* user: user auth, user role, user balance;
* task: task description, task status, task price;
* accounting: auditlog.

# Домены
![domains](./domains.jpg)

Схема в [miro](https://miro.com/app/board/uXjVPRU99XY=/).

# Сервисы

По итогу выделяем 4 сервиса:
* authenticate - общий сервис авторизации UberPopug Inc;
* task tracker - управление задачами(создание, ассайн, закрытие);
* accounting - произведение расчётов, управление балансами пользователей, ведение аудит лога;
* analytics - формирование аналитическойинформации, полученной из accounting.

# Бизнес-события
* user role changed;
* task added;
* task assigned;
* all tasks assigned;
* task completed;
* task status changed;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это техническое описание того, как была реализована команда (т.е. описал как произойдет что-то, а не что произойдет)

* task price calculated;
* money deposited;
* money credited;
* money withdrawn.

# CUD-события
* create, update, delete users;
* task added (для аккаунтинга нужно посчитать стоимость таски).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тут тогда надо писать task created, мы же описываем что с агрегатом произошло

Binary file added docs/week-1/data model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/week-1/domains.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/week-1/event storming.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.