Platform Overview¶
Posit Team is a three-server product that is usually deployed together:
| Product | Role | Service name | Config directory |
|---|---|---|---|
| Posit Workbench | Browser IDEs (RStudio Pro, Positron Pro, VS Code, JupyterLab)1 | rstudio-server, rstudio-launcher |
/etc/rstudio/2 |
| Posit Connect | Publishing and hosting (Shiny, Quarto, APIs, Streamlit, scheduled reports)10 | rstudio-connect |
/etc/rstudio-connect/9 |
| Posit Package Manager | Internal CRAN, Bioconductor, PyPI, and Open VSX repositories16 | rstudio-pm |
/etc/rstudio-pm/15 |
The legacy rstudio-* names survive in service names, paths, and binaries even though the products are now branded Posit.
flowchart TD
Users(["Users<br>(browser)"]) -->|"develop"| WB("Workbench")
WB -->|"publishes"| Con("Connect")
WB -->|"installs packages"| PPM("Package<br>Manager")
Con -->|"restores packages"| PPM
PPM <-->|"syncs with"| Upstream["CRAN / Bioconductor / PyPI<br/>(Posit Package Service)"]
style WB fill:#e8f1f8,stroke:#447099,stroke-width:2px,color:#1a1a1a
style Con fill:#fdf1e3,stroke:#c9822b,stroke-width:2px,color:#1a1a1a
style PPM fill:#e8f5ec,stroke:#3f8f5a,stroke-width:2px,color:#1a1a1a
Workflow¶
How Posit services are used:
-
Developers (statisticians, data scientists, app developers, etc.) write code in Workbench, using an IDE (RStudio, VS Code, Jupyter notebooks, or Positron)
-
During development, developers install packages from Package Manager.
-
If developers want to share what they've created, they publish to Connect.
-
When content is deployed, Connect can restore packages from the same Package Manager repositories.87
Workbench¶
Workbench runs a main server process (rserver) and a Job Launcher (rstudio-launcher) that can start IDE sessions and Workbench Jobs.12 With the Local launcher plugin, sessions are child processes of the plugin on the Workbench host itself.3 Kubernetes and Slurm plugins run sessions on that infrastructure instead.4
flowchart LR
Browser(["User browser"]) --> RServer("<code>rserver</code>")
RServer --> Launcher("Job Launcher<br/>(default port 5559)")
Launcher --> Positron("Positron Pro session")
Launcher --> RStudio("RStudio Pro session")
Launcher --> VSCode("VS Code session")
Launcher --> Jupyter("JupyterLab session")
Launcher --> Jobs("Workbench Jobs")
RServer --- DB[("Internal database<br/>(SQLite or PostgreSQL)")]
style RServer fill:#e8f1f8,stroke:#447099,stroke-width:2px,color:#1a1a1a
style DB fill:#f1eaf6,stroke:#7a4f9a,stroke-width:2px,color:#1a1a1a
By default, Workbench stores its internal database in SQLite, which is not sufficient for load-balanced deployments.5 Load-balanced Workbench requires PostgreSQL, user home directories on shared storage, and a server-wide shared storage path:6
flowchart TB
LB(["Load balancer"]) --> WB1("Workbench node 1")
LB --> WB2("Workbench node 2")
WB1 --> PG[("PostgreSQL<br/>internal database")]
WB2 --> PG
WB1 --> NFS[("Shared storage<br/>home directories +<br/>server-shared-storage-path")]
WB2 --> NFS
style WB1 fill:#e8f1f8,stroke:#447099,stroke-width:2px,color:#1a1a1a
style WB2 fill:#e8f1f8,stroke:#447099,stroke-width:2px,color:#1a1a1a
style PG fill:#f1eaf6,stroke:#7a4f9a,stroke-width:2px,color:#1a1a1a
Connect¶
Connect hosts content. Each piece of content gets its own isolated R or Python environment. Connect builds it at deploy time from the bundle's dependency information: renv.lock or requirements.txt, with manifest.json describing the deployment.111213
flowchart LR
subgraph Clients
U1(["User"]) --> B1("Browser")
U2(["User"]) --> B2("Browser")
end
B1 --> Con("Connect")
B2 --> Con
subgraph Host["Connect host"]
Con --> Quarto("Quarto docs")
Con --> Shiny("Shiny apps")
Con --> APIs("FastAPI / Plumber APIs")
Con --> Streamlit("Streamlit / Dash apps")
Con --> Sched("Scheduled reports")
end
style Con fill:#fdf1e3,stroke:#c9822b,stroke-width:2px,color:#1a1a1a
Package Manager¶
Package Manager serves public repositories from the Posit Package Service, downloading package content on demand. It also serves precompiled Linux binaries, hosts internal packages from Git and local sources, and uses snapshots to freeze repositories at points in time.161718
flowchart LR
WBSess("Workbench sessions") --> PPM("Package Manager")
Con("Connect") --> PPM
Desktop(["Desktop R / Python"]) --> PPM
PPM --> Sources["Sources: CRAN, Bioconductor,<br/>PyPI, Git, local"]
style WBSess fill:#e8f1f8,stroke:#447099,stroke-width:2px,color:#1a1a1a
style Con fill:#fdf1e3,stroke:#c9822b,stroke-width:2px,color:#1a1a1a
style PPM fill:#e8f5ec,stroke:#3f8f5a,stroke-width:2px,color:#1a1a1a
Where to go next¶
- Environments: how to lay out development, production, and public-facing tiers
- Authentication: PAM, OIDC, SAML, and how identity flows to each product
- Databases: SQLite vs PostgreSQL for each product1419
Posit's own admin training covers Connect administration and Workbench administration if you are new to the products.
-
Launcher Configuration, which lists
/etc/rstudio/launcher.confand/etc/rstudio/rserver.confand the default launcher port 5559. ↩↩