Skip to content

Commit e011376

Browse files
committed
Adding CI
1 parent 96ff5f4 commit e011376

File tree

3 files changed

+19
-9
lines changed

3 files changed

+19
-9
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- master
77
- main
8+
pull_request:
9+
branches:
10+
- *
811
env:
912
SITE_DIR: "gh-pages"
1013
jobs:
@@ -13,7 +16,7 @@ jobs:
1316
runs-on: [ubuntu-latest]
1417
steps:
1518
- name: Checkout
16-
uses: actions/checkout@v2
19+
uses: actions/checkout@v4
1720
- name: "Generate site using antora site action"
1821
uses: kameshsampath/antora-site-action@master
1922
with:
@@ -27,9 +30,10 @@ jobs:
2730
runs-on: [ubuntu-latest]
2831
needs: [build_site]
2932
name: "Deploy GitHub Pages"
33+
if: github.event_name != 'pull_request'
3034
steps:
3135
- name: Checkout
32-
uses: actions/checkout@v2
36+
uses: actions/checkout@v4
3337
- name: Download generated site
3438
uses: actions/download-artifact@v4
3539
with:

documentation/modules/ROOT/pages/01-pattern.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ The core of this solution is an event mesh—a dynamic, flexible layer that
1919
routes, retries, and processes asynchronous events across distributed
2020
components. Using _Knative Eventing_ and _CloudEvents_, this pattern enables:
2121

22-
* *Reliable delivery* of events with retry mechanisms.
23-
* Simplified *asynchronous workflows*.
24-
* *Decoupling* of services to improve scalability, testability and resilience.
22+
- *Reliable delivery* of events with retry mechanisms.
23+
- Simplified *asynchronous workflows*.
24+
- *Decoupling* of services to improve scalability, testability and resilience.
2525

2626
The approach of Cabs engineering team is to extract well-defined services, using
2727
the _CQRS_ pattern to identify _Commands_ from _Queries_, and model the

documentation/modules/ROOT/pages/02-architecture.adoc

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
= Solution Pattern: Name Template
1+
= Building Apps around the Event Mesh
22
:sectnums:
33
:sectlinks:
44
:doctype: book
@@ -7,12 +7,18 @@
77

88
Introduction for the architecture of this solution pattern.
99

10-
== Common Challenges
11-
1210
[#tech_stack]
1311
== Technology Stack
1412

15-
// Change links and text here as you see fit.
13+
14+
The solution employs Command Query Responsibility Segregation (CQRS) to separate commands and queries:
15+
16+
Commands are modeled as asynchronous events and handled by the event mesh.
17+
18+
Queries are synchronous operations safe to retry.
19+
20+
21+
1622
* Red Hat supported products
1723
** https://www.redhat.com/en/technologies/cloud-computing/openshift[Red Hat OpenShift]
1824
** Red Hat Application Foundation

0 commit comments

Comments
 (0)