ContactBook a call

Infrastructure

Cloudflare consultant: Workers, cron triggers and R2 storage that do the heavy lifting

SBD uses Cloudflare Workers and R2 to take heavy or high-volume processing out of no-code tools and store documents cheaply, for teams of 1 to 1,000 people, in a Cloudflare account in your name. Workflow automation builds start at $1,000, with the fixed price set after a $500 Automation Audit that is credited to the build.

Tool
cloudflare.com
Usually paired with
Make, n8n, Supabase, Vercel
Timeline
Most builds live in 2 to 8 weeks
Owned by
You, with accounts, credentials and code in your name.

What we build on Cloudflare

  • Run lightweight workers for webhooks and transforms
  • Store files in R2 instead of expensive app storage
  • Protect forms and APIs from abuse
  • Keep automation cost down by moving heavy steps to the edge

What we sync

  • Workers
  • R2 buckets
  • DNS records
  • Access rules

Workflows we are asked for

  • Cloudflare Workers as a webhook bridge
  • File uploads to R2 from forms
  • Rate limiting on public endpoints
  • Edge transforms before Make or n8n

Tools Cloudflare usually needs to talk to

What a Cloudflare developer from SBD builds

We mostly use Cloudflare as a workhorse behind other tools.

A Worker takes a job that would cost many operations or tasks in Make or Zapier, such as generating a report, reshaping a large payload or calling several APIs in sequence, and does it in one request. R2 holds documents and files with signed links, so a database row stores a key rather than the file itself.

Four published SBD projects use Cloudflare. In a multi-user production dashboard, report generation runs on Cloudflare Workers with direct printing through PrintNode. In an automated cashback and loyalty system, Make works with Cloudflare Workers and the Razorpay X payout APIs. For a photo studio, heavier processing moved to Apps Script and Workers to keep automation costs down. And in a loan broker CRM, KYC and loan documents are stored in R2 and uploaded through signed links.

When Cloudflare Workers are the right choice, and when they are not

A good fit

Workers suit short, stateless jobs that are triggered by an HTTP request or a schedule: webhook receivers, payload transformations, report generation, light APIs and fan-out calls to other services. On the Paid plan Cloudflare does not charge for duration, only for requests and CPU time, so a Worker that spends most of its time waiting for a slow third-party API costs very little. R2 suits documents, exports and media that are downloaded often, because it charges no egress fee.

We will use something else when

  • The job needs a full Node.js environment, large native libraries or more than 128 MB of memory; a Vercel function or a small server is easier.
  • The team needs to change the logic often without a developer; a Make or n8n scenario they can read is worth the extra operations.
  • The data has to live in a relational database with row-level permissions; Supabase or Postgres does that, with Workers in front if needed.
  • Volume is tiny; the Free plan may be enough, or the work belongs inside an existing tool.

Workers and R2 pricing, and the limits that shape a design

From Cloudflare's developer documentation in October 2026:

Tokens, secrets and the traps we design around

  1. 01

    Cloudflare API tokens can be scoped to specific permissions and resources, restricted by client IP and given an expiry.

    The secret is shown once, and new tokens carry a recognisable prefix so leak scanners can find them. We create account-owned tokens for service use, scoped to the one Worker, bucket or zone a job needs, rather than tokens tied to a person who might leave.

  2. 02

    Three traps come up repeatedly.

    First, CPU time is not wall time: a Worker that parses a large spreadsheet can exceed its CPU budget even though it finishes quickly, so we stream and chunk heavy work. Second, R2 Class A operations cost twelve and a half times as much per million as Class B, so we check which class each call in a frequent sync falls into, and store file keys in the database rather than repeatedly listing the bucket. Third, a Worker should not rely on memory between requests, so anything that must survive goes to R2 or your own database.

  3. 03

    Secrets live in Worker secrets, never in code, and every scheduled Worker logs its result somewhere a person will see a failure.

How a Worker fits alongside Make, n8n and your apps

The most common pattern is a Worker called from an automation platform.

A Make scenario or n8n workflow sends one HTTP request to the Worker with a shared secret in a header; the Worker does the heavy part, such as merging data from several APIs, building a PDF or reshaping a large file, and returns a small result. The scenario stays readable for your team, and the expensive loop that used to run as hundreds of separate operations becomes one request.

The second pattern is a scheduled Worker on a cron trigger that replaces a script on someone's laptop: a nightly report, a reconciliation, a reminder run. Each run writes a row recording when it started, what it did and whether it failed, so a missed night is visible the next morning.

The third is document handling with R2. Your app asks a Worker for a short-lived signed upload link, the browser uploads straight to the bucket, and the database stores only the object key, the uploader and the time. Files never pass through a function body, so the request size limits never come into play.

How hiring a Cloudflare consultant from SBD works

  1. Step 1$500Automation AuditCredited to the build
  2. Step 2from$1,000Workflow automationFixed after the audit
  3. Step 3from$3,000Internal toolsFixed after the audit
  4. Step 4from$50Care planA month, after sixty days of hypercare

Every engagement starts with an Automation Audit at $500, credited in full to your build. When Cloudflare is in scope it is usually because an automation platform bill has grown or a step keeps timing out; the audit measures the operations or tasks each step consumes and shows what moving it to a Worker would save. You get a ranked list of changes, each with a fixed price.

Workflow automation builds start at $1,000, internal tools at $3,000 and multi-module systems at $5,000. Work runs in two-week sprints with sixty days of hypercare, and care plans start at $50 a month. Cloudflare bills your account directly.

What you own when the build is finished

Everything below is in your name when the build ends.

  • The Cloudflare account, every Worker, bucket and token are in your name, and the source is in your Git repository with a deployment script.
  • You receive a runbook for each Worker and cron trigger that says what it does, what it costs at current volume, how to redeploy it and who is alerted on failure.
  • If a Worker later needs to move, for example into a Vercel function next to the rest of an app, the code is plain JavaScript or TypeScript and moves with modest changes.

Cloudflare at enterprise scale

Most larger organisations already have Cloudflare in front of their websites, run by a network or security team. Workers and R2 often arrive later, from application teams who want edge logic or cheap storage, which means the account, the access model and the billing are owned by someone other than the people building on it.

Working inside an existing account

We agree with your network or security team which account and zones we may touch, and work through scoped tokens they can see and revoke, never a global key.

Least-privilege tokens

Each job gets a token limited to its own Worker, bucket or zone, with IP filtering and an expiry where the job allows. Tokens are account-owned so they survive staff changes.

Document storage and access

We keep buckets private and serve files through short-lived signed links issued by your application, with the access rule written down and tested.

Cost control at volume

We model requests, CPU time and R2 operations against your real traffic before go-live, and design listings and writes so Class A operations stay low.

Change control

Workers deploy from your Git repository through a scripted pipeline, so every change is reviewed and can be rolled back to a known version.

Monitoring

Each Worker writes its outcome to a log or monitoring tool you own, and failures alert a named person rather than waiting to be noticed.

Engagements we take on

Already on Cloudflare, automation bill too high

A Make or Zapier scenario burns thousands of operations on data reshaping. We move that step into a Worker and leave the readable parts of the scenario in place, then report the saving.

Already on Cloudflare, documents scattered

Files sit in email, shared drives and app attachments. We set up R2 with signed upload and download links from your app, and a database record for every file.

Already on Cloudflare, Workers nobody owns

A past contractor deployed Workers from a laptop. We bring the code into your repository, rotate tokens, document each one and set up monitoring.

Already on Cloudflare, need scheduled jobs

Nightly reports and syncs run from someone's machine. We move them to cron-triggered Workers with logs and alerts, within your plan's trigger allowance.

Standards on every build

Validation, retries, reconciliation, audit logs and alerts come as standard, with credentials and accounts in your name. Read the integration standards

What people ask about Cloudflare

Why use Workers with Make?

To keep operation counts down. A Worker can do the heavy parsing once and hand Make a clean payload.

Start with the one Cloudflare workflow your team still runs by hand

Bring it to a discovery call. You leave with a yes or no on fit, an outline of the build and what we would do first.

Book the call
A screen from an SBD build using Cloudflare
A screen from an SBD build using Cloudflare.

Cookie preferences

Choose what this site may use on your device. You can change this at any time from “Cookie settings” in the footer.

Strictly necessary

Keep the site working and remember the choices you make here. These cannot be switched off, and none of them track you.

Always on
What this includes (4)
NameProvider PurposeDuration
sbd-consentThis site Remembers your cookie choices12 months
Vercel Web AnalyticsVercel Inc. Counts page views in aggregate. Sets no cookie and stores nothing on your deviceNone
ticker-dismissed, sbd-note-offThis site Remembers that you closed a notice or language tipUntil the tab closes
sbd-voice-resume, sbd-voice-prefillThis site Carries a voice conversation across pages, only if you start oneUntil the tab closes

Analytics

Tell us which pages are read and where visitors leave, so we can improve them. IP addresses are anonymised and nothing is used for advertising.

What this includes (2)
NameProvider PurposeDuration
_gaGoogle Analytics (Google LLC) Distinguishes visitors with a random ID13 months
_ga_FPXDMQPRV1Google Analytics (Google LLC) Keeps the session state for this site13 months

Functional

Embedded services that set their own cookies. Without them the site still works; you get a link to open the service instead.

What this includes (1)
NameProvider PurposeDuration
Booking calendarCal.com Inc. Shows live availability and books the call on the booking pageSet by Cal.com

Advertising

Not used. This site has no advertising, retargeting or social media tracking, and we never sell data.

Not used

Questions about your data: hello@smallbaydigital.com