Skip to content

Commit 26b9738

Browse files
Apply suggestions from code review
Co-authored-by: René Jeglinsky <[email protected]>
1 parent d0831fe commit 26b9738

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

java/outbox.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,13 @@ And finally, if for some reason you don't want to use a version check for a part
168168
Currently, CAP Java does not yet support microservices with shared database out of the box, as this can lead to unexpected behavior when different isolated services use the same outboxes.
169169
Since CAP automatically creates two outboxes with a static name — **DefaultOutboxOrdered** and **DefaultOutboxUnordered** — these would be shared across all services which introduces conflicts.
170170

171-
To avoid this, you can apply a manual workaround by customizing the outbox configuration and isolating them via distinct namespaces for each service.
171+
To avoid this, you can apply a manual workaround as follows:
172+
173+
1. Customize the outbox configuration and isolating them via distinct namespaces for each service.
174+
2. Adapt the Audit Log outbox configuration.
175+
3. Adapt the messaging outbox configuration per service.
176+
177+
These steps are described in the following sections.
172178

173179
#### Deactivate Default Outboxes
174180

@@ -180,8 +186,8 @@ cds:
180186
services:
181187
# deactivate default outboxes
182188
DefaultOutboxUnordered.enabled: false
183-
DefaultOutboxOrdered.enebled: false
184-
# custom outboxes with uniqie names
189+
DefaultOutboxOrdered.enabled: false
190+
# custom outboxes with unique names
185191
Service1CustomOutboxOrdered:
186192
maxAttempts: 10
187193
storeLastError: true
@@ -211,11 +217,11 @@ Next, adapt the messaging configuration of **every** messaging service in the ap
211217
```yaml
212218
cds:
213219
messaging:
214-
- MessagingService1:
215-
outbox.name: Service1CustomOutboxOrdered
216-
- MessagingService2:
217-
outbox.name: Service1CustomOutboxOrdered
218-
...
220+
services:
221+
MessagingService1:
222+
outbox.name: Service1CustomOutboxOrdered
223+
MessagingService2:
224+
outbox.name: Service1CustomOutboxOrdered
219225
```
220226
221227

0 commit comments

Comments
 (0)