Skip to content
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

added http handler to limitations section #1874

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions networking/dynamic-request-routing.html.markerb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

Apps may append a `fly-replay` header to responses. This instructs [Fly Proxy](/docs/reference/fly-proxy) to redeliver (replay) the original request in another region, or to replay it to another app in the same organization.

<%= youtube "https://www.youtube.com/watch?v=riCh9Xeuf0s" %>

Check warning on line 19 in networking/dynamic-request-routing.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Fly.Spelling] Is 'youtube' a typo? Raw Output: {"message": "[Fly.Spelling] Is 'youtube' a typo?", "location": {"path": "networking/dynamic-request-routing.html.markerb", "range": {"start": {"line": 19, "column": 5}}}, "severity": "INFO"}

The content of the `fly-replay` header fields tells Fly Proxy which magic to perform, and the proxy takes it from there. If the target region doesn't host any healthy Machines for the target app, the proxy throws an error.

Expand All @@ -36,6 +36,7 @@

If you can perform uploads via `fetch` or `XMLHttpRequest`, you can prepend the [fly-prefer-region](#the-fly-prefer-region-request-header) or [fly-force-instance-id](#the-fly-force-instance-id-request-header) header to send the request directly to a specific region.

Your app should use the [http handler](/docs/networking/services/#http-handler) in order to use fly-replay.

Check warning on line 39 in networking/dynamic-request-routing.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Fly.Spelling] Is 'http' a typo? Raw Output: {"message": "[Fly.Spelling] Is 'http' a typo?", "location": {"path": "networking/dynamic-request-routing.html.markerb", "range": {"start": {"line": 39, "column": 26}}}, "severity": "INFO"}

Check warning on line 39 in networking/dynamic-request-routing.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Fly.WordList] Consider using 'to' instead of 'in order to'. Raw Output: {"message": "[Fly.WordList] Consider using 'to' instead of 'in order to'.", "location": {"path": "networking/dynamic-request-routing.html.markerb", "range": {"start": {"line": 39, "column": 81}}}, "severity": "INFO"}

## `fly-replay` use cases

Expand Down Expand Up @@ -129,5 +130,5 @@
```

<div class="note icon">
**Note**: The value of this header is the Machine ID, which you can get by running `fly status` or `fly machines list`.

Check warning on line 133 in networking/dynamic-request-routing.html.markerb

View workflow job for this annotation

GitHub Actions / Vale linter

[vale] reported by reviewdog 🐶 [Fly.Machine] Use 'Machines' instead of 'machines'. Raw Output: {"message": "[Fly.Machine] Use 'Machines' instead of 'machines'.", "location": {"path": "networking/dynamic-request-routing.html.markerb", "range": {"start": {"line": 133, "column": 104}}}, "severity": "INFO"}
</div>
Loading