-
-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added README and solution for HotelManagement
- Loading branch information
1 parent
77abd9c
commit cf893be
Showing
5 changed files
with
206 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Core", "Core", "{1F491B11-2201-4616-976F-A3012D95BD9C}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core.WebApi", "..\..\Core.WebApi\Core.WebApi.csproj", "{AE9175ED-054C-46F6-A91D-0F2691BD935B}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Docs", "Docs", "{6C654A81-F8CF-46DE-9CD8-442162F3F6FD}" | ||
ProjectSection(SolutionItems) = preProject | ||
README.md = README.md | ||
EndProjectSection | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docker", "docker", "{88584BD6-A70F-464D-9EFD-609C5E1C10DE}" | ||
ProjectSection(SolutionItems) = preProject | ||
docker-compose.yml = docker-compose.yml | ||
EndProjectSection | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core", "..\..\Core\Core.csproj", "{39647310-1DEE-4464-94CC-59CBC2A2B185}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core.Serialization", "..\..\Core.Serialization\Core.Serialization.csproj", "{E65E4940-C29F-4558-AB21-8AC2F54528DE}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core.Testing", "..\..\Core.Testing\Core.Testing.csproj", "{A1894305-B86B-411D-ABCE-115CF5142D92}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HotelManagement", "HotelManagement\HotelManagement.csproj", "{13273AB6-CD0F-46F5-9760-DD5C2938DBCF}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HotelManagement.Api", "HotelManagement.Api\HotelManagement.Api.csproj", "{2196B997-E94E-49D7-851D-2CE5223839C7}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HotelManagement.Tests", "HotelManagement.Tests\HotelManagement.Tests.csproj", "{A05744BA-0A7C-40CD-B7C7-A75945278989}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core.Marten", "..\..\Core.Marten\Core.Marten.csproj", "{425F1AD6-E58D-4EDE-813E-EE42FF08ADBA}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(NestedProjects) = preSolution | ||
{AE9175ED-054C-46F6-A91D-0F2691BD935B} = {1F491B11-2201-4616-976F-A3012D95BD9C} | ||
{39647310-1DEE-4464-94CC-59CBC2A2B185} = {1F491B11-2201-4616-976F-A3012D95BD9C} | ||
{E65E4940-C29F-4558-AB21-8AC2F54528DE} = {1F491B11-2201-4616-976F-A3012D95BD9C} | ||
{A1894305-B86B-411D-ABCE-115CF5142D92} = {1F491B11-2201-4616-976F-A3012D95BD9C} | ||
{425F1AD6-E58D-4EDE-813E-EE42FF08ADBA} = {1F491B11-2201-4616-976F-A3012D95BD9C} | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{AE9175ED-054C-46F6-A91D-0F2691BD935B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{AE9175ED-054C-46F6-A91D-0F2691BD935B}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{AE9175ED-054C-46F6-A91D-0F2691BD935B}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{AE9175ED-054C-46F6-A91D-0F2691BD935B}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{39647310-1DEE-4464-94CC-59CBC2A2B185}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{39647310-1DEE-4464-94CC-59CBC2A2B185}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{39647310-1DEE-4464-94CC-59CBC2A2B185}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{39647310-1DEE-4464-94CC-59CBC2A2B185}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{E65E4940-C29F-4558-AB21-8AC2F54528DE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{E65E4940-C29F-4558-AB21-8AC2F54528DE}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{E65E4940-C29F-4558-AB21-8AC2F54528DE}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{E65E4940-C29F-4558-AB21-8AC2F54528DE}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{A1894305-B86B-411D-ABCE-115CF5142D92}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{A1894305-B86B-411D-ABCE-115CF5142D92}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{A1894305-B86B-411D-ABCE-115CF5142D92}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{A1894305-B86B-411D-ABCE-115CF5142D92}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{13273AB6-CD0F-46F5-9760-DD5C2938DBCF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{13273AB6-CD0F-46F5-9760-DD5C2938DBCF}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{13273AB6-CD0F-46F5-9760-DD5C2938DBCF}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{13273AB6-CD0F-46F5-9760-DD5C2938DBCF}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{2196B997-E94E-49D7-851D-2CE5223839C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{2196B997-E94E-49D7-851D-2CE5223839C7}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{2196B997-E94E-49D7-851D-2CE5223839C7}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{2196B997-E94E-49D7-851D-2CE5223839C7}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{A05744BA-0A7C-40CD-B7C7-A75945278989}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{A05744BA-0A7C-40CD-B7C7-A75945278989}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{A05744BA-0A7C-40CD-B7C7-A75945278989}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{A05744BA-0A7C-40CD-B7C7-A75945278989}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{425F1AD6-E58D-4EDE-813E-EE42FF08ADBA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{425F1AD6-E58D-4EDE-813E-EE42FF08ADBA}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{425F1AD6-E58D-4EDE-813E-EE42FF08ADBA}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{425F1AD6-E58D-4EDE-813E-EE42FF08ADBA}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[![Twitter Follow](https://img.shields.io/twitter/follow/oskar_at_net?style=social)](https://twitter.com/oskar_at_net) [![Github Sponsors](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&link=https://github.com/sponsors/oskardudycz/)](https://github.com/sponsors/oskardudycz/) [![blog](https://img.shields.io/badge/blog-event--driven.io-brightgreen)](https://event-driven.io/?utm_source=event_sourcing_jvm) [![blog](https://img.shields.io/badge/%F0%9F%9A%80-Architecture%20Weekly-important)](https://www.architecture-weekly.com/?utm_source=event_sourcing_net) | ||
|
||
# Implementing Distributed Processes | ||
|
||
Added example of distributed processes management using Group Guests Checkout as an example. | ||
|
||
It was modelled and explained in detail in the [Implementing Distributed Processes Webinar](https://www.architecture-weekly.com/p/webinar-3-implementing-distributed): | ||
|
||
<a href="https://www.architecture-weekly.com/p/webinar-3-implementing-distributed" target="_blank"><img src="https://substackcdn.com/image/fetch/w_1920,h_1080,c_fill,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-video.s3.amazonaws.com%2Fvideo_upload%2Fpost%2F69413446%2F526b9100-7271-4482-99e7-9559416e9848%2Ftranscoded-00624.png" alt="How to deal with privacy and GDPR in Event-Sourced systems" width="640" border="10" /></a> | ||
|
||
It shows how to: | ||
- orchestrate and coordinate business workflow spanning across multiple aggregates using [Saga pattern](https://event-driven.io/en/saga_process_manager_distributed_transactions/), | ||
- handle distributed processing both for asynchronous commands scheduling and events publishing, | ||
- getting at-least-once delivery guarantee, | ||
- implementing command store and outbox pattern on top of Marten and EventStoreDB, | ||
- unit testing aggregates and Saga with a little help from [Ogooreck](https://github.com/oskardudycz/Ogooreck), | ||
- testing asynchronous code. | ||
|
||
Read more in: | ||
- [Saga and Process Manager - distributed processes in practice](https://event-driven.io/en/saga_process_manager_distributed_transactions/) | ||
- [Event-driven distributed processes by example](https://event-driven.io/en/saga_process_manager_distributed_transactions/). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
version: "3" | ||
services: | ||
postgres: | ||
image: clkao/postgres-plv8 | ||
container_name: postgres | ||
environment: | ||
POSTGRES_PASSWORD: Password12! | ||
ports: | ||
- '5432:5432' | ||
networks: | ||
- postgres | ||
|
||
pgadmin: | ||
image: dpage/pgadmin4 | ||
container_name: pgadmin_container | ||
environment: | ||
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]} | ||
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin} | ||
PGADMIN_CONFIG_SERVER_MODE: 'False' | ||
volumes: | ||
- pgadmin:/var/lib/pgadmin | ||
ports: | ||
- "${PGADMIN_PORT:-5050}:80" | ||
networks: | ||
- postgres | ||
|
||
####################################################### | ||
# EventStoreDB | ||
####################################################### | ||
eventstore.db: | ||
image: eventstore/eventstore:21.10.1-buster-slim | ||
# use this image if you're running ARM-based proc like Apple M1 | ||
# image: ghcr.io/eventstore/eventstore:21.10.0-alpha-arm64v8 | ||
environment: | ||
- EVENTSTORE_CLUSTER_SIZE=1 | ||
- EVENTSTORE_RUN_PROJECTIONS=All | ||
- EVENTSTORE_START_STANDARD_PROJECTIONS=true | ||
- EVENTSTORE_EXT_TCP_PORT=1113 | ||
- EVENTSTORE_HTTP_PORT=2113 | ||
- EVENTSTORE_INSECURE=true | ||
- EVENTSTORE_ENABLE_EXTERNAL_TCP=true | ||
- EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP=true | ||
ports: | ||
- '1113:1113' | ||
- '2113:2113' | ||
volumes: | ||
- type: volume | ||
source: eventstore-volume-data | ||
target: /var/lib/eventstore | ||
- type: volume | ||
source: eventstore-volume-logs | ||
target: /var/log/eventstore | ||
networks: | ||
- eventstore.db | ||
|
||
networks: | ||
postgres: | ||
driver: bridge | ||
eventstore.db: | ||
driver: bridge | ||
|
||
volumes: | ||
postgres: | ||
pgadmin: | ||
eventstore-volume-data: | ||
eventstore-volume-logs: |