Skip to content

Commit 2a9b95c

Browse files
change: update README.md (#349)
Co-authored-by: Rafa Gómez <rgomezcasas@gmail.com>
1 parent 966edc2 commit 2a9b95c

1 file changed

Lines changed: 20 additions & 6 deletions

File tree

README.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ some Symfony and Laravel implementations.
6363

6464
### ⛱️ Bounded Contexts
6565

66-
* [Mooc](src/Mooc): Place to look in if you wanna see some code 🙂. Massive Open Online Courses public platform with users, videos, notifications, and so on.
67-
* [Backoffice](src/Backoffice): Here you'll find the use cases needed by the Customer Support department in order to manage users, courses, videos, and so on.
66+
- [Mooc](src/Mooc): Place to look in if you wanna see some code 🙂. Massive Open Online Courses public platform with users, videos, notifications, and so on.
67+
- [Backoffice](src/Backoffice): Here you'll find the use cases needed by the Customer Support department in order to manage users, courses, videos, and so on.
6868

6969
### 🎯 Hexagonal Architecture
7070

@@ -106,6 +106,7 @@ src
106106
```
107107

108108
#### Repository pattern
109+
109110
Our repositories try to be as simple as possible usually only containing 2 methods `search` and `save`.
110111
If we need some query with more filters we use the `Specification` pattern also known as `Criteria` pattern. So we add a
111112
`searchByCriteria` method.
@@ -114,33 +115,46 @@ You can see an example [here](src/Mooc/Courses/Domain/CourseRepository.php)
114115
and its implementation [here](src/Mooc/Courses/Infrastructure/Persistence/DoctrineCourseRepository.php).
115116

116117
### Aggregates
118+
117119
You can see an example of an aggregate [here](src/Mooc/Courses/Domain/Course.php). All aggregates should
118120
extend the [AggregateRoot](src/Shared/Domain/Aggregate/AggregateRoot.php).
119121

120122
### Command Bus
123+
121124
There is 1 implementations of the [command bus](src/Shared/Domain/Bus/Command/CommandBus.php).
125+
122126
1. [Sync](src/Shared/Infrastructure/Bus/Command/InMemorySymfonyCommandBus.php) using the Symfony Message Bus
123127

124128
### Query Bus
129+
125130
The [Query Bus](src/Shared/Infrastructure/Bus/Query/InMemorySymfonyQueryBus.php) uses the Symfony Message Bus.
126131

127132
### Event Bus
133+
128134
The [Event Bus](src/Shared/Infrastructure/Bus/Event/InMemory/InMemorySymfonyEventBus.php) uses the Symfony Message Bus.
129135
The [MySql Bus](src/Shared/Infrastructure/Bus/Event/MySql/MySqlDoctrineEventBus.php) uses a MySql+Pulling as a bus.
130136
The [RabbitMQ Bus](src/Shared/Infrastructure/Bus/Event/RabbitMq/RabbitMqEventBus.php) uses RabbitMQ C extension.
131137

132138
## 📱 Monitoring
139+
133140
Every time a domain event is published it's exported to Prometheus. You can access to the Prometheus panel [here](http://localhost:9999/).
134141

135142
## 🤔 Contributing
143+
136144
There are some things missing (add swagger, improve documentation...), feel free to add this if you want! If you want
137145
some guidelines feel free to contact us :)
138146

139147
## 🤩 Extra
148+
140149
This code was shown in the [From framework coupled code to #microservices through #DDD](http://codely.tv/screencasts/codigo-acoplado-framework-microservicios-ddd) talk and doubts where answered in the [DDD y CQRS: Preguntas Frecuentes](http://codely.tv/screencasts/ddd-cqrs-preguntas-frecuentes/) video.
141150

142151
🎥 Used in the CodelyTV Pro courses:
143-
* [🇪🇸 DDD in PHP](https://pro.codely.tv/library/ddd-en-php/about/)
144-
* [🇪🇸 Arquitectura Hexagonal](https://pro.codely.tv/library/arquitectura-hexagonal/66748/about/)
145-
* [🇪🇸 CQRS: Command Query Responsibility Segregation](https://pro.codely.tv/library/cqrs-command-query-responsibility-segregation-3719e4aa/62554/about/)
146-
* [🇪🇸 Comunicación entre microservicios: Event-Driven Architecture](https://pro.codely.tv/library/comunicacion-entre-microservicios-event-driven-architecture/74823/about/)
152+
153+
- [🇪🇸 DDD in PHP](https://pro.codely.tv/library/ddd-en-php/about/)
154+
- [🇪🇸 Arquitectura Hexagonal](https://pro.codely.tv/library/arquitectura-hexagonal/66748/about/)
155+
- [🇪🇸 CQRS: Command Query Responsibility Segregation](https://pro.codely.tv/library/cqrs-command-query-responsibility-segregation-3719e4aa/62554/about/)
156+
- [🇪🇸 Comunicación entre microservicios: Event-Driven Architecture](https://pro.codely.tv/library/comunicacion-entre-microservicios-event-driven-architecture/74823/about/)
157+
158+
## 🌐 remember to visit our courses
159+
160+
- [Courses codely](https://codely.com/cursos)

0 commit comments

Comments
 (0)