Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
adamw committed Jan 3, 2025
1 parent 8bd7ebd commit ca0a80c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
12 changes: 3 additions & 9 deletions docs/backends/wrappers/custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,10 @@ See the appropriate section in docs on [redirects](../../conf/redirects.md).
A good example on how to implement a logging backend wrapper is the [logging](logging.md) backend wrapper implementation. It uses the `ListenerBackend` to get notified about request lifecycle events.

To adjust the logs to your needs, or to integrate with your logging framework, simply copy the code and modify as needed.

## Examples backend wrappers

## Example backend with rate limiter

> "Prepare for a scale and establish reliability and HA of your service."
Below is an example on how to implement a backend wrapper, which integrates with rate-limiter module from resilience4j library and wraps any backend:

```scala mdoc:compile-only

```
A number of example backend wrappers can be found in [examples](../../examples.md).

## Example new backend

Expand Down
2 changes: 1 addition & 1 deletion docs/other/resilience.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Here's an incomplete list of libraries which can be used to manage retries in va
* for Monix/cats-effect: [cats-retry](https://github.com/cb372/cats-retry)
* for Monix: `.restart` methods

See also the "resiliency" [examples](../examples.md).
See also the "resiliency" and "backend wrapper" [examples](../examples.md).

### Backend-specific retries

Expand Down

0 comments on commit ca0a80c

Please sign in to comment.