An open API service indexing awesome lists of open source software.

https://github.com/jacob-ebey/cf-lambda-streaming

Enable your AWS Lambda hosted applications to stream responses via Cloudflare Workers.
https://github.com/jacob-ebey/cf-lambda-streaming

Last synced: 11 months ago
JSON representation

Enable your AWS Lambda hosted applications to stream responses via Cloudflare Workers.

Awesome Lists containing this project

README

          

# cf-lambda-streaming

Enable your AWS Lambda hosted applications to stream responses via Cloudflare Workers.

## Overview

HTTP request -> CF Worker -> CF DO configurable load balancer-> WebSocket -> AWS -> WebSocket -> CF DO -> CF Worker -> HTTP Response

![Architecture diagram](./overview.png)

## Deploying

Build the remix app:

```sh
npm run build
```

Deploy to AWS:

```sh
npx arc deploy production
```

Copy the HTTP and WS URL's printed at the end of the deployment into `wrangler.toml`
with HTTP as `ORIGIN_URL` and WS as `SOCKET_URL`.

Deploy to Cloudflare:

```sh
npx wrangler publish
```