Skip to content

Commit 99ff3af

Browse files
committed
Adding CI
1 parent 96ff5f4 commit 99ff3af

File tree

3 files changed

+20
-9
lines changed

3 files changed

+20
-9
lines changed

.github/workflows/docs.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- master
77
- main
8+
pull_request:
9+
branches:
10+
- '*'
11+
812
env:
913
SITE_DIR: "gh-pages"
1014
jobs:
@@ -13,7 +17,7 @@ jobs:
1317
runs-on: [ubuntu-latest]
1418
steps:
1519
- name: Checkout
16-
uses: actions/checkout@v2
20+
uses: actions/checkout@v4
1721
- name: "Generate site using antora site action"
1822
uses: kameshsampath/antora-site-action@master
1923
with:
@@ -27,9 +31,10 @@ jobs:
2731
runs-on: [ubuntu-latest]
2832
needs: [build_site]
2933
name: "Deploy GitHub Pages"
34+
if: github.event_name != 'pull_request'
3035
steps:
3136
- name: Checkout
32-
uses: actions/checkout@v2
37+
uses: actions/checkout@v4
3338
- name: Download generated site
3439
uses: actions/download-artifact@v4
3540
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)