Skip to content

Commit 85af8d4

Browse files
committed
Updated guides
1 parent 4df10ad commit 85af8d4

File tree

5 files changed

+53
-6
lines changed

5 files changed

+53
-6
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: Concepts
3+
pcx_content_type: navigation
4+
sidebar:
5+
order: 2
6+
group:
7+
hideIndex: true
8+
---

src/content/docs/pipelines/get-started.mdx renamed to src/content/docs/pipelines/getting-started/http-to-r2.mdx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
title: Getting started
3-
pcx_content_type: get-started
2+
title: HTTP to R2
3+
pcx_content_type: concept
44
sidebar:
55
order: 1
66
head:
77
- tag: title
8-
content: Getting started
8+
content: Getting started with HTTP to R2
99
---
1010

1111
import { Render, PackageManagers } from "~/components";
1212

13-
Pipelines let you ingest real-time data streams, such as click events on a website, or logs from a service. You can send data to a Pipeline from a Worker, or via HTTP. Pipelines handle batching requests and scales in response to your workload. Finally, Pipelines deliver the output into R2 as JSON files, automatically handling partitioning and compression for efficient querying.
13+
Pipelines lets you ingest and load real time data streams such as website clicks or logs into [R2 Object Storage](/r2/).
1414

15-
By following this guide, you will:
15+
In this guide, we'll show you how to setup a Pipeline which accepts data via HTTP. By following this guide, you will:
1616

1717
1. Create your first Pipeline.
1818
2. Connect it to your R2 bucket.
@@ -33,7 +33,13 @@ To use Pipelines, you will need:
3333

3434
## 1. Set up an R2 bucket
3535

36-
Pipelines let you ingest records in real time, and load them into an R2 bucket. Create a bucket by following the [get started guide for R2](/r2/get-started/). Save the bucket name for the next step.
36+
Pipelines let you ingest records in real time, and load them into an R2 bucket. Create a bucket by following the [get started guide for R2](/r2/get-started/), or by running the command below:
37+
38+
```sh
39+
npx wrangler r2 bucket create [R2-BUCKET-NAME]
40+
```
41+
42+
Save the bucket name for the next step.
3743

3844
## 2. Create a Pipeline
3945

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: Getting Started
3+
pcx_content_type: navigation
4+
sidebar:
5+
order: 1
6+
group:
7+
hideIndex: true
8+
---
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: Workers to R2
3+
pcx_content_type: concept
4+
sidebar:
5+
order: 2
6+
head:
7+
- tag: title
8+
content: Getting started with Workers to R2
9+
---
10+
11+
TODO

src/content/docs/pipelines/index.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,20 @@ Ingest and load real time data streams to R2, using Cloudflare Pipelines.
2323

2424
Pipelines lets you ingest and load real time data streams into [R2 Object Storage](/r2/), without managing any infrastructure. You can send data to a Pipeline data via HTTP, or from a [Worker](/workers/). Your Pipeline will handle batching the data, generating compressed JSON files, and delivering the files to an R2 bucket.
2525

26+
## Build your first Pipeline
27+
You can create a Pipeline with a single command:
28+
29+
```sh
30+
npx wrangler pipelines create my-pipeline --r2-bucket my-r2-bucket
31+
32+
🌀 Authorizing R2 bucket "my-r2-bucket"
33+
🌀 Creating pipeline named "my-pipeline"
34+
✅ Successfully created pipeline my-pipeline with ID 0adedf710c20401x74380236286a8b9c
35+
36+
You can now send data to your pipeline with:
37+
curl "https://0adedf710c20401x74380236286a8b9c.pipelines.cloudflare.com/" -d '[{ "foo":"bar }]'
38+
```
39+
2640
Refer to the [get started guide](/pipelines/get-started) to start building with Pipelines.
2741

2842
***

0 commit comments

Comments
 (0)