Reverse Proxy and Load Balancing for 'fiery'

Provides plugins for setting up 'fiery' apps as a reverse proxy. This allows you to use a 'fiery' server as a front for multiple services or even work as a load-balancer.


firestorm

R-CMD-check Codecov testcoverage

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()

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("firestorm")

0.1.0 by Thomas Lin Pedersen, a year ago


https://github.com/thomasp85/firestorm


Report a bug at https://github.com/thomasp85/firestorm/issues


Browse source code at https://github.com/cran/firestorm


Authors: Thomas Lin Pedersen [aut, cre] (ORCID: , Posit Software , PBC [cph, fnd] (ROR: <https://ror.org/03wc8by49>)


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports cli, R6, rlang, websocket

Suggests fiery, httpuv, later, reqres, testthat


Imported by plumber2.


See at CRAN