Sitemap
Better Programming

Advice for programmers.

Member-only story

Create and Deploy Your First JavaScript Serverless Worker

5 min readJul 15, 2022

--

Photo by Viktorija Lankauskaitė on Unsplash

Last week I wrote an article about the tools I use the most when working with JavaScript. Cloudflare workers and wranglers were on that list. Today, you’ll get to know why and how I use them.

You’ll learn to deploy a serverless worker, which is extremely useful in many situations.

For example, you can compress IPFS pinning in a simple worker request and allow users to upload to IPFS while still masking your API keys as you'd do in a traditional backend.

I also plan to make this a series to cover creating APIs on CF workers and explain topics like dealing with CORS, interacting with the native KV store, and so on. If you are serious about building scalable serverless APIs, stay tuned.

What Are Cloudflare Workers?

Let’s start with the basics, what are CF workers, and how do they work?

CF workers provide an environment to create applications without taking care of the infrastructure. They are directly run by the Cloudflare network, which consists of various servers distributed all across the globe. In addition, the runtime offers most of the APIs that are implemented…

--

--

Tommaso De Ponti
Tommaso De Ponti

Written by Tommaso De Ponti

Building stuff, #Stellar. https://tdep.xycloo.com. Check my personal blog at https://heytdep.github.io for more specific and/or advanced articles.

Responses (2)