generated from redhat-solution-patterns/solution-pattern-website-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Content for the solution pattern #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
bfe9d7b
Index page content
cardil 7f6da47
Adding CI
cardil 0692ece
Merge remote-tracking branch 'upstream/main' into feature/initial-con…
cardil f60fc47
Merge remote-tracking branch 'upstream/main' into feature/initial-con…
cardil f7f4257
Arch
cardil f9b6f36
Architecture chapter
cardil 5c2c042
Reword the architecture chapter
cardil 2a5ba67
Reword the Event Mesh flow of the Architecture chapter
cardil 3e83a6e
Differences with Event Sourcing and Service Mesh
cardil aeabc6d
Reformat table
cardil e4a7720
Polishing the nitpicks from the review
cardil 360f9fb
Begin with the demo
cardil 74aeae3
Section about example flaws in the demo
cardil 5995862
A demo section written in 3/4
cardil 66b1614
Finished the demo, and the whole solution
cardil 47a6152
Apply suggestions from code review
cardil 9521ee3
Review changes
cardil 5280cd0
Review changes for demo (without reorder)
cardil 896b3d7
Reorder the demo
cardil 9f1b45b
CodeRabbit nitpicks
cardil 25b6ab0
ui-bundle: cardil/redhat-solution-patterns-course-ui v0.1.17
cardil e40919a
Use redhat-solution-patterns/course-ui latest bundle
cardil 357b7bd
Use openshift-knative/cabs-usvc for demo
cardil f1240b1
Typo
cardil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Binary file removed
BIN
-249 KB
documentation/modules/ROOT/assets/images/red_hat_open-hybrid-cloud.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 hidden or 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 |
---|---|---|
@@ -1,7 +1,30 @@ | ||
[#_the_story] | ||
== The story behind this solution pattern | ||
|
||
A description of the story that was used to build the demo and architectures of this SP. | ||
Cabs is a fictional transportation company. | ||
Engineers at Cabs were struggling with their transactional-style, monolith application. | ||
They recently started an effort to modernize it. | ||
|
||
The team saw a https://www.youtube.com/watch?v=Rc5IO6S6ZOk[talk on _Event Mesh_]. | ||
The talk presented the advantages of moving beyond transactional architectures in favor of eventual consistency. | ||
By leveraging event meshes with technologies like Knative, developers can achieve decoupled, reliable microservices without extensive re-engineering. | ||
This solution addresses inefficiencies and aligns distributed systems with real-world business processes. | ||
The team had figured out they could leverage the https://martinfowler.com/bliki/CQRS.html[_CQRS_] pattern together with _Knative's Event Mesh_ | ||
to modernize their application in a non-extrusive way. | ||
|
||
[#_the_solution] | ||
== The Solution | ||
|
||
This is a summary of the solution | ||
The core of this solution is an event mesh -- a dynamic, flexible infrastructure layer that routes, retries, and processes asynchronous events across distributed components. | ||
Using _Knative Eventing_ and _CloudEvents_, this pattern enables: | ||
|
||
- *Reliable delivery* of events with retry mechanisms. | ||
- Simplified *asynchronous workflows*. | ||
- *Decoupling* of services to improve scalability, testability and resilience. | ||
|
||
The approach of Cabs engineering team is to extract well-defined services, using the _CQRS_ pattern to identify _Commands_ from _Queries_, and model the | ||
_Commands_ as _Events_. | ||
Those events will be routed to the _Event Mesh_ with regular _HTTP_ messages. | ||
The _CloudEvents_ library ensures the proper serialization of the events to and from the _HTTP_ messages. | ||
The _Event Mesh_ | ||
will handle not only the persistence of the events in-flight, but also all the required logic of retry in case of endpoint failure. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a link would be cool
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The links are collected in the Technology stack section: https://cardil.github.io/solution-pattern-event-mesh-for-microservices/pull-1/solution-pattern-event-mesh-for-microservices/02-architecture.html#tech_stack
Looks like all the patterns follow that structure.
Even more links are present in the https://cardil.github.io/solution-pattern-event-mesh-for-microservices/pull-1/solution-pattern-event-mesh-for-microservices/developer-resources.html page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd write CNCF CloudEvents at least once on the beginning section. To underline its importance: A standard
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, just a proposal. Maybe link from here to the resource section ? 🤔