-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deployed f57eb00 with MkDocs version: 1.5.3
- Loading branch information
0 parents
commit 34df502
Showing
82 changed files
with
23,539 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
hide: | ||
- navigation | ||
--- | ||
|
||
|
||
# Architecture | ||
|
||
Here is a high level architecture diagram of a user's request going through the | ||
process of retrieving data. This is not the situation with all apps but this is very feasible. | ||
|
||
Keep in mind that the code of DBTunnel is the yellow bit of the diagram. The rest is the user's code. | ||
The proxy intercepts the requests and rewrites the html and js files to allow for the app to be hosted behind a proxy | ||
as needed. The reason for doing this is a lot of these apps are not designed to run/sit behind proxies. They expect | ||
to be served at the root of the domain. And they send pre-rendered HTML that does not take into the location of the browser | ||
window location. DBTunnel proxy rewrites are a stop gap. | ||
|
||
Traffic flows through in the following order: | ||
|
||
1. The user's browser | ||
2. The Databricks Driver Proxy URL | ||
3. The Driver Proxy | ||
4. The DBTunnel Proxy (for most frameworks) | ||
1. The DBTunnel ASGI proxy handles http requests and websocket requests separately | ||
5. The User's App (gradio, chainlit, etc.) | ||
6. [Optional] DBSQL connector/mlflow deployment client/requests library | ||
7. [Optional] DBSQL Warehouse / Model serving endpoint / Jobs / etc. | ||
8. [Optional] Unity Catalog / Databricks Clusters / etc. | ||
|
||
<br> | ||
|
||
![Image title](./imgs/DBTunnel%20Arch.png) | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.