firestorm

R-CMD-check Codecov test coverage

firestorm is a package providing load-balancing (WIP) and reverse proxying for fiery based web servers as plugins. It supports proxying of both HTTP and WebSocket

Installation

# You can install marquee from CRAN
pak::pak("firestorm")

# Or get the development version from Github
pak::pak("thomasp85/firestorm")

Example

Below you can see an example of using firestorm with a fiery server. Here we relay all requests to the fiery server to another service running on the same computer.

library(fiery)
library(firestorm)

# create a reverse proxy to another service running on your computer
# at 127.0.0.1:9876
revprox <- ReverseProxy$new("http://127.0.0.1:9876")

# Attach it to a fiery server
app <- Fire$new()
app$attach(revprox)

# Start the server
app$ignite()