- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
β01-26-2026 07:38 AM - edited β01-26-2026 07:40 AM
Hello,
I want to host a webapp whose frontend will be on Streamlit and backend running on FastApi. Currently Databricks app listens to host 0.0.0.0 and port 8000 and my backend is running on host '127.0.0.1' and port 8080(if it's available). I want to understand what the best approach is here to host backend and frontend efficiently?
- Labels:
-
Spark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
β01-26-2026 01:54 PM
Hi @prajwalpoojary ,
Given you already have Streamlit on 0.0.0.0:8000 and FastAPI on 127.0.0.1:8080, you can keep that split and do server-side calls from Streamlit to http://127.0.0.1:8080/. Itβs efficient and avoids cross-origin/auth issues. If you later want external clients to call the API, move those endpoints under /api on the public 8000 server and use OAuth tokens.
This blog post walks through setting up a react chat frontend to interact with a FastApi backend.