Skip to content

Commit

Permalink
Outbox: Information regarding accessing outboxed services (#725)
Browse files Browse the repository at this point in the history
* added information regarding outboxed services: they're java proxy objects

* Apply suggestions from code review

Co-authored-by: Marc Becker <[email protected]>

* Changes after review

* Update java/outbox.md

---------

Co-authored-by: Marc Becker <[email protected]>
  • Loading branch information
t-bonk and beckermarc authored Mar 7, 2024
1 parent d2ba46e commit e5dd25e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions java/outbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ All calls to `CqnService.run` methods return null since they're executed asynchr
A service wrapped by an outbox can be unboxed by calling the API `OutboxService.unboxed(Service)`. Method calls to the unboxed
service are executed synchronously without storing the event in an outbox.

::: warning Java Proxy
A service wrapped by an outbox is a [Java Proxy](https://docs.oracle.com/javase/8/docs/technotes/guides/reflection/proxy.html). Such a proxy only implements the _interfaces_ of the object it is wrapping. This means an outboxed service proxy can't be casted to the class implementing the underlying service object.
:::

::: tip Custom outbox for scaling
The default outbox services can be used for outboxing arbitrary CAP services. If you detect a scaling issue,
you can define custom outboxes that can be used for outboxing.
Expand Down

0 comments on commit e5dd25e

Please sign in to comment.