Project is Java implementation of concept described in Udi Dahan's "Advanced Distributed Systems Design using SOA & DDD" course.
- Services should not use request-response pattern to communicate between themselves.
- The only part where request-response is allowed is itops module responsible for security and cross-domain processes which requires collecting data from many modules.
- Each service exposes it's own frontend component and only this service can present and modify modules data.
- Composite UI service collects components exposed by domain services and composes frontend views
- Services are created with Spring Boot. Registers in Eureka Service Discovery. All public URL is exposed by gateway.
- Domain services communicate in async way (fire & forget architectural style) by Active MQ message broker.
- ITOPS service collects data from other services using request-response calls. Each service required by itops exposes it's own provider with Feign Client contract definition and DTOs.
- Domain services exposes their frontend components as static js file with reusable Angular Elements
- Webapp service composes UI from Angular Elements components exposed by other services
Responsible for reserving a room, searching available rooms and searching for "no-show" reservations
Holds and displays room types descriptions
Stores payment data and supports payment successes and failures
Stores guests information and supports searching by guest last name
Delivers information about rates for given room type in particular point of time
Supports check-in process and physical room allocation
Communicates with external service to charge card. Collects all of the required data using providers delivered by other modules.
Starts embedded Active MQ broker
Gateway to public endpoints exposed by services. Uses Zuul
Provides SD functionality by starting Eureka
Builds UI composed from domain services frontends
Java 1.8 or higher
nodejs + npm
gradle
- Npm frontend build by gradle incremental task, build is started only when sources or package.json changes
- Gradle copy of frontend project into static resources of spring boot aplication
- Gradle creates bootJar
Start
gradle bootRun
Application is available at http://localhost:8080/webapp
Project contains only backend tests
gradle test
- Gradle - Dependency Management
- Tomasz Tokarczyk (https://github.com/tomek39856)