generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added TODOs * started to describe the new generic outbox API * fixed typos * described the configuration of custom outboxes * started to describe outboxing of arbitrary CAP services * Docs for new `sap.common.Timezone` (#686) * Docs for new `sap.common.TimeZone` * Rename to `Timezone`. Add API links * add internal fragment * added example for outboxing a service * detail changes to outboxing arbitrary CAP services * fixed typos * Update java/outbox.md Co-authored-by: BraunMatthias <[email protected]> * Update java/outbox.md Co-authored-by: BraunMatthias <[email protected]> * Update java/outbox.md Co-authored-by: BraunMatthias <[email protected]> * Update java/outbox.md Co-authored-by: BraunMatthias <[email protected]> * Update java/outbox.md Co-authored-by: BraunMatthias <[email protected]> * Apply suggestions from code review Co-authored-by: BraunMatthias <[email protected]> * added warning * fixed merge conflicts * described how to outbox custom CAP service events * fixed typo * minor changes * added anchor * added tip for using custom outbox when using multiple channels * Apply suggestions from code review Co-authored-by: Marc Becker <[email protected]> * changes after review * removed chapter regarding outboxing of custom CAP services * Update outbox.md * Apply suggestions from code review Co-authored-by: Marc Becker <[email protected]> * changes after code review * Apply suggestions from code review Co-authored-by: BraunMatthias <[email protected]> * changes after code review * editing --------- Co-authored-by: Christian Georgi <[email protected]> Co-authored-by: Rene Jeglinsky <[email protected]> Co-authored-by: BraunMatthias <[email protected]> Co-authored-by: Marc Becker <[email protected]>
- Loading branch information
1 parent
0447137
commit f080ba8
Showing
2 changed files
with
167 additions
and
38 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -33,10 +33,6 @@ In contrast, the nature of synchronous communication between services can be dis | |
|
||
In the following, we provide a basic introduction to publish-subscribe-based messaging and then explain how to use it in CAP. If you're already familiar with publish-subscribe-based messaging, feel free to skip the following introduction section. | ||
|
||
::: tip | ||
The described messaging features are available from version `[email protected]`. | ||
::: | ||
|
||
## Pub-Sub Messaging | ||
|
||
In a publish-subscribe-based messaging scenario (pub-sub messaging), senders send a message tagged with a topic to a message broker. Receivers can create queues at the message broker and subscribe these queues to the topics they're interested in. The message broker will then copy incoming messages matching the subscribed topics to the corresponding queues. Receivers can now consume these messages from their queues. If the receiver is offline, no messages will be lost as the message broker safely stores messages in the queue until a receiver consumes the messages. After the receiver acknowledges the successful processing of a message, the message broker will delete the acknowledged message from the queue. | ||
|
@@ -88,8 +84,11 @@ As shown in the example, there are two flavors of sending messages with the mess | |
|
||
In section [CDS-Declared Events](#cds-declared-events), we show how to declare events in CDS models and by this let CAP generate EventContext interfaces especially tailored for the defined payload, that allows type safe access to the payload. | ||
|
||
::: tip | ||
The messages are sent once the transaction is successful. Per default, an in-memory outbox is used, but there's also support for a persistent outbox. See [Java - Outbox](./outbox) for more information. | ||
::: tip Using an outbox | ||
The messages are sent once the transaction is successful. Per default, an in-memory outbox is used, but there's also support for a [persistent outbox](./outbox#persistent). | ||
|
||
You can configure a [custom outbox](./outbox#custom-outboxes) for a messaging service by setting the property | ||
`cds.messaging.services.<key>.outbox.name` to the name of the custom outbox. This specifically makes sense when [using multiple channels](../guides/messaging/#using-multiple-channels). | ||
::: | ||
|
||
|
||
|
@@ -668,7 +667,7 @@ The way how unsuccessfully delivered messages are treated, fully depends on the | |
Not all messaging brokers provide the acknowledgement support. This means, the result of the error handler has no effect for the messaging broker. | ||
|
||
| Messaging Broker | Support | Cause | | ||
|--------------------------------------------------------|:-------:|:----------------------:| | ||
| ------------------------------------------------------ | :-----: | :--------------------: | | ||
| [File Base Messaging](#local-testing) | <Na/> | | | ||
| [Event Mesh](#configuring-sap-event-mesh-support) | <X/> | removed from the queue | | ||
| [Message Queuing](#configuring-sap-event-mesh-support) | <X/> | removed from the queue | | ||
|
This file contains 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