-
Notifications
You must be signed in to change notification settings - Fork 28
Add Cosmo Streams documentation #187
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
base: main
Are you sure you want to change the base?
Changes from all commits
3943d81
ae48e0e
fa3b614
5500654
460b81b
347ccbe
f59ab84
90cce94
5984dea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -224,20 +224,30 @@ | |
| ] | ||
| }, | ||
| { | ||
| "group": "Event-Driven Federated Subscriptions (EDFS)", | ||
| "icon": "calendar-users", | ||
| "group": "Cosmo Streams (EDFS)", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know this is a bit out of scope here but would it make sense to alphabetically order the root level. |
||
| "icon": "wave", | ||
| "pages": [ | ||
| "router/event-driven-federated-subscriptions-edfs", | ||
| "router/cosmo-streams", | ||
| { | ||
| "group": "NATS", | ||
| "icon": "puzzle-piece", | ||
| "pages": [ | ||
| "router/event-driven-federated-subscriptions-edfs/nats", | ||
| "router/event-driven-federated-subscriptions-edfs/nats/stream-and-consumer-configuration" | ||
| "router/cosmo-streams/nats", | ||
| "router/cosmo-streams/nats/stream-and-consumer-configuration" | ||
| ] | ||
| }, | ||
| "router/event-driven-federated-subscriptions-edfs/kafka", | ||
| "router/event-driven-federated-subscriptions-edfs/redis" | ||
| "router/cosmo-streams/kafka", | ||
| "router/cosmo-streams/redis", | ||
| { | ||
| "group": "Custom Modules", | ||
| "icon": "cubes", | ||
| "pages": [ | ||
| "router/cosmo-streams/custom-modules", | ||
| "router/cosmo-streams/custom-modules/subscription-on-start", | ||
| "router/cosmo-streams/custom-modules/on-receive-event", | ||
| "router/cosmo-streams/custom-modules/on-publish-event" | ||
| ] | ||
| } | ||
| ] | ||
| }, | ||
| "router/compliance-and-data-management", | ||
|
|
@@ -745,5 +755,11 @@ | |
| "gtm": { | ||
| "tagId": "GTM-5GPL7DQH" | ||
| } | ||
| } | ||
| }, | ||
| "redirects": [ | ||
| { | ||
| "source": "/router/event-driven-federated-subscriptions-edfs/:path*", | ||
| "destination": "/router/cosmo-streams/:path*" | ||
| } | ||
| ] | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| --- | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This file is actually located inside of the custom-modules as mv custom-modules.mdx ./custom-modules/overview.mdx |
||
| title: "Custom Modules" | ||
| sidebarTitle: Overview | ||
| description: "Customize Streams behavior with powerful handlers for subscription lifecycle, event processing, and data transformation." | ||
| icon: "circle-info" | ||
| --- | ||
|
|
||
| Cosmo Router provides powerful handlers to hook into the event processing of Cosmo Streams. | ||
| These handlers allow you to implement custom logic for subscription lifecycle management, event processing and data transformation. | ||
|
|
||
| <Info> | ||
| Custom Modules in Cosmo Streams are available since Router version 0.266.0 | ||
| </Info> | ||
|
|
||
| ## Available Hooks | ||
|
|
||
| The Cosmo Streams system provides three main hook interfaces that you can implement with [Custom Modules](/router/custom-modules): | ||
|
|
||
| - [`SubscriptionOnStartHandler`](/router/cosmo-streams/custom-modules/subscription-on-start): Called when a client subscribes | ||
| - [`OnReceiveEventHandler`](/router/cosmo-streams/custom-modules/on-receive-event): Called when events are received from a message broker | ||
| - [`OnPublishEventHandler`](/router/cosmo-streams/custom-modules/on-publish-event): Called when events are going to be sent to a message broker | ||
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.
Would it make sense to actually describe it a bit more to an LLM?