Cloudflare Workers Crash Course | Deploy Your Website with Cloudflare

Mehul - Codedamn
19 Nov 202115:48

Summary

TLDRThis video offers a crash course on Cloudflare Workers, explaining what they are and how to set up your first worker using the Wrangler 2 CLI tool. It covers the basics of Cloudflare Workers, which function like AWS Lambda but in a different environment, and demonstrates creating a simple worker that can be tested and published to the Cloudflare network. The tutorial also explores advanced features, such as using geolocation data and setting up a proxy for websites like Reddit, showcasing the power and flexibility of Cloudflare Workers for developers.

Takeaways

  • 🌐 Cloudflare Workers are serverless functions that run on Cloudflare's global network, akin to AWS Lambda but in a different environment.
  • πŸ› οΈ The Wrangler 2 CLI tool is introduced for setting up and managing Cloudflare Workers, currently in beta and expected to be stable soon.
  • πŸ“š The script requires Node.js version 16.7 or greater to work with Wrangler 2.0 CLI.
  • πŸ“ Cloudflare Workers are created by writing JavaScript or TypeScript that responds to fetch events, mimicking browser-based APIs.
  • πŸ”’ Compatibility data in the wrangler.toml file allows locking to a specific runtime version to avoid breaking changes in future updates.
  • πŸ“‘ Workers can access geolocation data through the request.cf object, enabling location-based responses.
  • πŸ“ The script demonstrates creating a simple HTML response and deploying it globally with Cloudflare Workers.
  • πŸš€ Wrangler 2 makes local testing easy with 'yarn wrangler dev', allowing for real-time updates during development.
  • 🌍 Publishing a worker to the Cloudflare network provides a public URL that is instantly deployed worldwide.
  • πŸ”„ Cloudflare Workers can be used as a proxy to redirect requests to other domains, such as redirecting to reddit.com with custom paths.
  • πŸ›‘οΈ Larger websites may have security measures in place to prevent simple proxying, but smaller sites can be proxied without issues.

Q & A

  • What is the main topic of the video?

    -The main topic of the video is a crash course on Cloudflare Workers, including how to set up the first worker, an introduction to the Wrangler 2 CLI tool, and various functionalities of Cloudflare Workers.

  • What does the speaker suggest about Cloudflare's recent activity?

    -The speaker suggests that Cloudflare has been very active in releasing new features, mentioning a 'full stack week' and the rapid release of features.

  • What is a Cloudflare Worker?

    -A Cloudflare Worker is essentially a serverless function that runs at the edge, similar to AWS Lambda functions, but in a different environment.

  • What is the Wrangler 2.0 CLI tool mentioned in the video?

    -The Wrangler 2.0 CLI tool is a command-line interface for developing, testing, and deploying Cloudflare Workers, which was in beta at the time of the video.

  • What is the minimum Node.js version required for using Wrangler 2.0 CLI as mentioned in the video?

    -The minimum Node.js version required for using Wrangler 2.0 CLI is 16.7 or greater.

  • How does the speaker describe the process of setting up the first Cloudflare Worker?

    -The speaker describes the process as starting with 'yarn wrangler init', followed by creating a project name, and then writing a simple script that responds to fetch events with a hardcoded HTML response.

  • What is the purpose of the 'compatibility date' in the wrangler.toml file as discussed in the video?

    -The 'compatibility date' in the wrangler.toml file is a feature that allows developers to lock their Cloudflare Worker to a specific version of the runtime, ensuring that older features that might break in newer releases are preserved.

  • How can one test their Cloudflare Worker locally as per the video?

    -One can test their Cloudflare Worker locally using the 'yarn wrangler dev' command followed by the script name, which will start a local development server for testing.

  • What command is used to publish a Cloudflare Worker to the Cloudflare network?

    -The command used to publish a Cloudflare Worker to the Cloudflare network is 'yarn wrangler publish', followed by the name of the file.

  • What is an example of a practical application of Cloudflare Workers mentioned in the video?

    -An example of a practical application mentioned in the video is using Cloudflare Workers to tap into the geolocation of a user and display it, which can be useful for creating location-specific content or services.

  • How does the video demonstrate the ability to proxy requests through a Cloudflare Worker?

    -The video demonstrates proxying by showing how to modify a Cloudflare Worker to redirect requests meant for the Worker to another domain, such as reddit.com, by changing the URL's hostname and using the original request object to fetch the data.

  • What is the speaker's opinion on Cloudflare Workers and Wrangler 2.0 CLI?

    -The speaker's opinion is that Cloudflare Workers are powerful and that the Wrangler 2.0 CLI is amazing, especially for developers, due to its focus on speed, performance, and ease of deployment.

  • What is the final note the speaker gives to the audience at the end of the video?

    -The final note is an invitation for the audience to share their thoughts on Cloudflare Workers, express interest in more content related to Cloudflare, and join the Code Dam's Discord community for weekly coding events.

Outlines

00:00

🌐 Introduction to Cloudflare Workers

The video begins with an introduction to Cloudflare Workers, emphasizing their significance and comparing them to AWS Lambda functions. The speaker discusses the recent surge in new features released by Cloudflare and encourages viewers to subscribe and engage with the channel. The focus then shifts to setting up the first Cloudflare Worker using the Wrangler 2 CLI tool, which is still in beta. The speaker guides viewers through the installation process and highlights the requirement of a Node.js version greater than 16.7. The video also touches on the concept of compatibility data, which allows the use of older features in newer runtime versions.

05:02

πŸ›  Setting Up and Testing Cloudflare Workers

This paragraph delves into the process of setting up a Cloudflare Worker. The speaker demonstrates how to create a simple worker by adding a global fetch event listener and constructing a response object. The response object is hardcoded with an HTML string, mimicking an API response. The speaker then explains how to test the worker using the Wrangler 2 CLI tool by running 'yarn wrangler dev' and authorizing Cloudflare to access the user's account. The video also covers the steps to publish the worker on the Cloudflare network, resulting in a globally distributed, live URL. The speaker further explores the potential of Cloudflare Workers by accessing geolocation data through 'request.cf' and demonstrating how to use this information in the worker's response.

10:05

🌐 Advanced Cloudflare Workers Techniques

The speaker continues by showcasing advanced techniques for Cloudflare Workers, such as creating a proxy for websites like Reddit. The process involves modifying the URL's hostname to redirect requests through the worker, effectively acting as a proxy. The speaker demonstrates how to fetch data from the original request and pass it along with the headers and body to the new URL. The video also discusses the limitations of this approach, noting that larger websites like Reddit and Google have security measures in place to prevent such proxying. The speaker concludes by encouraging viewers to explore the capabilities of Cloudflare Workers and the Wrangler 2.0 CLI, highlighting the ease and speed of deploying workers globally.

15:06

πŸ“’ Wrapping Up and Engaging with the Audience

In the final paragraph, the speaker wraps up the video by inviting feedback on the content and Cloudflare Workers in general. They express interest in creating more content or even a short course on YouTube based on audience response. The speaker also encourages viewers to join Codedam's Discord community for weekly coding events and reminds them to like, subscribe, and comment on the video. The video concludes with a call to action for viewers to share their thoughts on what they would like to see next in terms of Cloudflare content.

Mindmap

Keywords

πŸ’‘Cloudflare Workers

Cloudflare Workers are serverless functions that run on Cloudflare's global network. They allow developers to write JavaScript code that executes close to the user, improving performance and reducing latency. In the video, the speaker discusses setting up the first Cloudflare Worker and highlights its capabilities, such as running on the edge and accessing geolocation data.

πŸ’‘Wrangler 2 CLI

Wrangler is a command-line tool for developing and deploying Cloudflare Workers. The video mentions Wrangler 2.0, which is in beta, and is used to initialize, test, and publish Cloudflare Workers. The script shows how to install and use Wrangler 2.0 to create a project and test a worker locally.

πŸ’‘Lambda Functions

Lambda functions are a concept introduced by AWS, where small, stateless functions are executed in response to events. The video compares Cloudflare Workers to AWS Lambda, emphasizing that they are similar in nature but operate in a different environment. This comparison helps viewers understand the serverless computing model.

πŸ’‘Fetch Event Listener

In the video, the speaker demonstrates how Cloudflare Workers use a fetch event listener to handle incoming requests. This is similar to how browsers handle fetch events, making it a familiar pattern for web developers. The script shows how to add a fetch event listener and respond with a hardcoded response.

πŸ’‘Response Object

A response object in the context of Cloudflare Workers is used to send data back to the client. The video explains how to construct a response object with content and headers, which is crucial for creating APIs or handling web requests. The example in the script shows a simple HTML response object.

πŸ’‘Geolocation

Geolocation in the video refers to the ability of Cloudflare Workers to access the geographical location of the user. This is achieved through the `request.cf` property, which provides details like the user's city and country. The speaker uses this feature to demonstrate a worker that responds with the user's geolocation.

πŸ’‘Proxy

The video discusses the ability of Cloudflare Workers to act as proxies, redirecting requests to different servers. The speaker shows how to modify a worker to proxy requests to Reddit, demonstrating the flexibility and power of Cloudflare Workers in routing and handling web traffic.

πŸ’‘Compatibility Data

Compatibility data in the video is mentioned in the context of Wrangler's configuration file. It allows developers to specify the version of the Cloudflare runtime that a worker should use, ensuring compatibility with older features. This is important for maintaining stability as the platform evolves.

πŸ’‘Serverless Computing

Serverless computing is a model where developers can build and run applications without having to manage servers. The video introduces Cloudflare Workers as an example of serverless computing, highlighting their ability to run code in a distributed manner without the need for dedicated server infrastructure.

πŸ’‘Deployment

Deployment in the video refers to the process of publishing a Cloudflare Worker to the Cloudflare network. The speaker demonstrates how to use the Wrangler CLI to deploy a worker, making it accessible via a URL. This is a key step in making a worker live and accessible to users worldwide.

πŸ’‘Performance

Performance is a central theme in the video, emphasizing the speed and efficiency of Cloudflare Workers. The speaker discusses how workers are globally distributed and run close to the user, reducing latency. This is showcased through the quick deployment and execution of workers, highlighting Cloudflare's focus on developer and end-user performance.

Highlights

Introduction to Cloudflare Workers and the significance of their recent feature releases.

Explanation of Cloudflare Workers as lambda functions in a different environment compared to AWS Lambda.

Recommendation to check out previous videos on Node.js and different runtimes for context.

Installation instructions for the Wrangler 2.0 CLI tool, which is still in beta.

Requirement for Node.js version 16.7 or greater for Wrangler 2.0 CLI.

Initial setup of a Cloudflare Worker project using `yarn wrangler init`.

Description of the `wrangler.toml` file and its role in project configuration.

Building a simple Cloudflare Worker to respond with a hardcoded HTML response.

Explanation of how Cloudflare Workers mimic browser-based APIs, especially the fetch event listener.

Demonstration of testing a Cloudflare Worker locally using `yarn wrangler dev`.

Instructions on how to publish a Cloudflare Worker to the Cloudflare network.

Example of using geolocation data (`request.cf`) in a Cloudflare Worker to customize responses.

Discussion on the potential use of Cloudflare Workers for dynamic content based on user location.

Exploring the possibility of using Cloudflare Workers as a proxy for web content.

Demonstration of proxying a request to Reddit through a Cloudflare Worker.

Note on potential limitations and restrictions when using Cloudflare Workers as a proxy for larger websites.

Final thoughts on the capabilities and performance focus of Cloudflare Workers and Wrangler 2.0 CLI.

Invitation for feedback and suggestions for future content on Cloudflare.

Transcripts

play00:00

hey everyone welcome back and in this

play00:01

video i want to discuss a bit about

play00:03

cloudflare workers so this will be a

play00:05

crash course on cloudflare workers what

play00:07

they are how you can set up your first

play00:10

worker on cloudflare and a little bit

play00:12

about this wrangler 2 cli tool as well

play00:16

so cloudflare has been on fire i mean in

play00:18

releasing a lot of new features there

play00:20

has been a full stack week going on on

play00:23

cloudflare and these guys are releasing

play00:25

features like crazy so i believe it

play00:28

it makes a lot of sense that we

play00:30

pay them some respect by actually

play00:33

covering a few of their tooling over

play00:35

here as well on coda if you're new here

play00:37

make sure you leave a like subscribe to

play00:39

the channel and hit the bell icon this

play00:41

is free of cost and helps the channel

play00:43

grow so in this video the purpose of

play00:45

this video is to showcase you how

play00:47

powerful workers are and workers are

play00:49

essentially lambda functions like aws

play00:52

has lambda functions concept but in a

play00:54

different environment i have done a

play00:55

video on node.js different runtimes

play00:58

available javascript different runtimes

play01:00

available where we cover about workers

play01:02

and aws lambda and dino and a couple of

play01:05

more so feel free to check that out you

play01:07

could see it probably linked here in the

play01:09

youtube other videos but yeah that's

play01:13

that's where we are okay so let's start

play01:15

this video the first thing i'm going to

play01:16

do is because this wrangler 2.0 cli is

play01:20

still in beta so we would have to

play01:22

install it in a way yan had

play01:25

wrangler i guess that's what they call

play01:27

it but we can just go to their github

play01:30

repository or you know just see here

play01:32

here wrangler beta

play01:35

and we can just access it

play01:37

from

play01:38

the node modules instead of installing

play01:39

it globally although it would make sense

play01:41

to install it globally once it's out of

play01:44

beta but for the most part the clr

play01:46

things usually don't change a lot so

play01:49

whatever syntax you're expecting with

play01:51

angular beta will probably work with the

play01:54

stable release as well but if anything

play01:56

changes i'll let you know in the

play01:57

description all right so right off the

play01:58

box we can see that wrangler 2.0 cli

play02:02

actually expects a 16.7 or greater node

play02:05

so we can have a node.js version which

play02:08

is greater than that there we go

play02:11

node 17 for the win and let's go ahead

play02:14

and try installing

play02:16

the cli now

play02:19

okay so the first thing i'm going to do

play02:21

is say yarn wrangler init and the name

play02:24

of my project let's say first worker it

play02:26

is so i'm just going to install

play02:29

it like this and it's going to create

play02:31

this pretty much a

play02:33

wrangler.normal file which includes the

play02:35

name and the compatibility date and

play02:37

compatibility data is also something

play02:39

which is like a new feature with

play02:41

cloudflare um we can discuss it maybe in

play02:43

some other crash course but for now you

play02:45

can think about this as a way that

play02:47

cloudflare would allow you to use even

play02:50

older features which might break in the

play02:53

newer release as in older features of

play02:55

the runtime and lock it to a specific

play02:58

version right but you don't need to

play03:00

worry a lot about this all right so

play03:02

let's go ahead and build a very simple

play03:04

example just to get started and then

play03:06

we're gonna build on top of that so

play03:08

first thing first what i'm gonna do is

play03:11

actually go ahead and start writing with

play03:13

add event listener because the way

play03:15

cloudflare works cloudflare workers work

play03:17

is that it tries to stay very close to

play03:20

how the browser-based apis work right

play03:23

and what they say over here is that we

play03:25

are adding a global listener of fetch

play03:28

and the way the syntax works is you say

play03:31

even dot respond with and of course you

play03:34

can work here with javascript as well

play03:37

with typescript as well and then you

play03:40

have to send a response object over here

play03:43

right i'm gonna say my response object

play03:46

let's say is a hard-coded response and

play03:49

this is like again an api in javascript

play03:52

if you have never really used this

play03:55

that's fine because in most cases you

play03:57

don't really need to construct a

play03:58

response yourself but you would always

play04:01

have used something like data is fetch

play04:04

something right this is like

play04:06

window.which that that thing where you

play04:08

specify the method post and so on so the

play04:10

thing which this returns after awaiting

play04:13

obviously is when you say data.json or

play04:16

data.text that's that's effectively you

play04:18

are doing that on a response object

play04:20

right so this data over here is a

play04:22

response object

play04:23

similarly we already have the request

play04:25

coming from the client

play04:27

all we need to do is actually construct

play04:29

a response object and the way we do that

play04:32

is we can just specify the content which

play04:34

needs to go and then in the headers part

play04:38

we'll just say that because this is an

play04:40

html document i'm going to specify the

play04:42

content type of

play04:44

text html

play04:45

right and over here you can just say

play04:47

html string

play04:49

something like this and this html string

play04:51

could be a simple you know a simple

play04:54

document.html you can even skip

play04:57

the doctype and stuff nothing works just

play04:59

fine but i mean

play05:01

that's fine if you just want to keep

play05:02

that as well i'm just going to quickly

play05:04

say hello from codedam to cloudflare

play05:08

workers this is like a very simple

play05:11

document we have the response object and

play05:13

all we need to do

play05:14

is just say

play05:16

this response

play05:18

object over here this is like all it

play05:20

takes to create a very simple worker

play05:22

page this worker would be globally

play05:24

distributed and would be running across

play05:26

the world now the next question is how

play05:27

do you test this out and it is extremely

play05:30

easy with the version 2 of wrangler all

play05:32

you have to do is say yarn wrangler dev

play05:36

and then the name of the script in this

play05:37

case it's index.js so you write that you

play05:40

might need to

play05:41

authorize cloudflare to use your account

play05:44

if you are doing it for the first time

play05:46

with the cli but once you do that you're

play05:48

going to see it just says your listening

play05:50

ad this port number and over here you

play05:52

can see that it starts working all right

play05:53

so you can see you can now make some

play05:56

changes and start working and testing it

play05:59

eventually you're gonna have to give it

play06:01

a couple of refreshes i guess to

play06:03

just make it work but it should be

play06:06

working just fine okay once we have this

play06:08

figured out let's also see how you can

play06:11

publish this on cloudflare network so

play06:14

i'm going to close this and start

play06:15

writing the command to publish this on

play06:18

the cloudflare network so that we get an

play06:20

actual url deployed here so i'm going to

play06:22

go ahead and say yarn wrangler

play06:24

publish and the index.js name of the

play06:27

file right now we are just going to

play06:29

publish only one single file you can

play06:31

configure that with the stormwell file

play06:33

if you are working on a more

play06:34

sophisticated project and the name for

play06:36

this is let's say first worker on

play06:39

cloudflare

play06:41

and hit enter and of course this will

play06:43

also ask you for your

play06:46

account and if it is already linked it

play06:49

will just check if the sub domain is

play06:50

registered it publishes it to

play06:52

workers.dev which is like a cloud for

play06:54

your own domain and you can see in my

play06:56

case i already have a username and that

play06:58

particular you know this is the name

play07:00

which we specified and this username is

play07:02

already available to my my cloudflare

play07:05

account you would have to authorize

play07:06

yours

play07:07

but it's as simple as just writing a

play07:09

single command in the cli

play07:11

and basically just visiting this url

play07:15

once that is available so you can see it

play07:17

is instantly deployed on a live url and

play07:19

you can share this but obviously this

play07:21

script is not very useful so let's try

play07:23

to make some changes to the script to

play07:25

see another example of what can be done

play07:27

with cloudfare workers so we know that

play07:29

cloudflare actually runs on the edge

play07:32

these workers are actually running on

play07:34

the edge so we have the ability to tap

play07:37

into the geolocation of the person who's

play07:40

browsing the domain right so what we can

play07:42

do is build something on those lines and

play07:45

the information about the geolocation is

play07:48

in the location is request dot cf so

play07:52

what is this request variable this

play07:54

request variable is pretty much what

play07:57

what you get out of the event so this

play08:00

request is event.request or rather you

play08:03

can just do something like

play08:04

this and then the location information

play08:07

is in request.cf

play08:09

right just for fun if you just try to

play08:11

respond with and let's say this response

play08:14

this html string is a function an order

play08:18

just a string i can just pass in my

play08:20

location and if i'm able to somehow just

play08:24

json or let me just go ahead and make

play08:26

this a three

play08:28

just json.stringify

play08:32

what we have in data

play08:34

and of course this is a template literal

play08:38

okay so if we try to do this with this

play08:41

work over here and if i try to publish

play08:43

this again all right within a few

play08:44

seconds this goes public and i can go

play08:46

ahead and refresh this on the main

play08:49

public domain and you can pretty much

play08:51

see all the information about where i am

play08:54

situated right now so of course this all

play08:57

this information is blood but we can

play09:00

kind of like look at this data down here

play09:02

so you can see i'm india based i'm from

play09:04

new delhi you get all that information

play09:06

and this this could be like really

play09:08

helpful in terms of for example if you

play09:10

have a cloudflare worker deployed as a

play09:15

page for your purchasing power parity

play09:17

pricing page then this is like really

play09:19

useful because you don't have to make

play09:21

another http call your worker is the one

play09:24

which is running the closest to the user

play09:26

and it all automatically has all that

play09:28

information this would also be used as a

play09:30

kind of a proxy i guess because what

play09:32

cloudflare does allow you to do is fetch

play09:35

request or fetch the resources within

play09:38

your own request right so cloudflare

play09:40

sits in the middle this worker and this

play09:42

connects to the internet on your behalf

play09:44

and then redirects you back let's say i

play09:46

mean this is probably not a replacement

play09:49

for a proxy or anything but maybe for

play09:52

simple static pages it might be fine

play09:54

let's say you want to have

play09:58

a redirection or a proxy event set for

play10:01

let's say reddit reddit.com right

play10:04

so what you can do is in terms of this

play10:07

response the response which you're

play10:09

constructing

play10:10

instead of doing it like this

play10:13

we actually construct the url

play10:16

so that we pretty much get everything in

play10:18

place so i say the url

play10:20

is new url request which is

play10:24

event.request.url over here this is the

play10:27

url which pretty much the person is

play10:29

writing in the browser itself like the

play10:31

full url my worker or cloudflare.dev

play10:35

slash abc and whatever so from this url

play10:38

what we need to do is we need to extract

play10:40

out this particular

play10:41

path right and what we need to do is

play10:45

actually append that path to reddit.com

play10:49

so one way to do that is of course that

play10:51

we take out this path like i said and

play10:52

append it but a faster way for that is

play10:54

actually when you change the hostname of

play10:57

this url itself because like i said this

play11:00

url would be constructed from this

play11:03

particular thing right my worker in our

play11:05

case it's basically this particular

play11:07

thing over here right so this would be

play11:09

constructed from this

play11:11

and then what we need to do is in our

play11:14

worker we need to replace this with

play11:16

reddit.com so all we have to do is just

play11:18

say url.hostname

play11:20

is reddit.com

play11:22

right and

play11:23

the next thing is we need to fetch the

play11:26

data so i'm going to say fetch

play11:28

my url dot to string but it's not as

play11:31

simple as that because requests contain

play11:33

a lot of metadata as well right like

play11:36

headers and cookies and stuff like that

play11:38

so what you want to do ideally is you

play11:41

also want to pass the original request

play11:44

object which contains all the headers

play11:46

and all the post data and the body and

play11:48

stuff directly to the fetch right and

play11:50

this fetch is literally like

play11:53

very close to how the browser api works

play11:55

so this is this will work out just fine

play11:58

as well so you have the url converted

play12:00

you have the request converted this is

play12:02

going to return you a promise

play12:04

and i mean you cannot wait over here if

play12:07

you would like

play12:08

but you can specify a promise over here

play12:10

as well that will just work fine so this

play12:13

is all you need to do

play12:15

to proxy all the data on reddit.com

play12:18

through your cloudflare worker let's see

play12:20

if this works out i'm going to deploy

play12:22

this again

play12:26

and i guess reddit already has some

play12:28

protection measures so that this this

play12:30

kind of proxing doesn't happen

play12:33

so what we can do is probably try some

play12:35

other website like goddamn.com because

play12:37

that's one website i'm sure that does

play12:39

not has this prediction at least for now

play12:43

and i had to go to incognito because

play12:45

reddit somehow set some cache in the

play12:47

browser but you can see that it pretty

play12:49

much works just the way you would expect

play12:51

it to work with all the functionalities

play12:53

and everything working but on a

play12:55

cloudflare proxy domain right the

play12:58

original domain is codedam.com obviously

play13:00

but over here you can see this also

play13:03

works just beautifully fine right and

play13:06

i'm hoping that this also works you know

play13:08

in single page application navigation

play13:10

and you can see like literally this is

play13:12

the main website but the funny thing

play13:14

about this is if you're trying to build

play13:16

something like this you can build your

play13:19

own codedam.com maybe set up a domain

play13:22

and make some changes over here which is

play13:24

like now it feels like we are heading

play13:26

into a phishing attack direction but i

play13:30

mean you can have some fun over here

play13:32

right if i replace this with google.com

play13:34

hopefully this should also work with

play13:37

google or maybe not like just like

play13:39

reddit google might have these

play13:40

restrictions in place that if the

play13:42

subdomain does not match the domain does

play13:45

not match the original one then it

play13:48

should probably just

play13:50

redirect on the main website and yeah it

play13:52

does so if you visit this domain it just

play13:54

redirects you to google.com but yeah i

play13:56

mean proxing like this obviously would

play13:59

not work for a lot of websites

play14:00

especially the larger ones because they

play14:02

already have those security measures in

play14:04

place but for smaller ones like godam

play14:07

this will work just fine so if your

play14:08

university or college has blocked

play14:10

goddamn for some reason i hope not but

play14:13

if it is then this is like one naughty

play14:16

way to get around that so yeah that's

play14:18

pretty much it for a crash course on

play14:21

cloudflare workers that's how you build

play14:23

something with workers deploy them very

play14:25

quickly with the cli and

play14:28

you know just do tons of amazing stuff

play14:30

with proxing and responding and creating

play14:33

apis with just workers and having a live

play14:36

public domain which is deployed

play14:39

worldwide within seconds i mean i love

play14:41

this fact about cloudflare that they

play14:43

focus a lot on you know just speed and

play14:46

performance and not only in terms of the

play14:49

end user but also in terms of the

play14:50

developer which is equally important but

play14:52

yeah that's my

play14:54

opinion on cloudflare workers especially

play14:56

the wrangler 2.0 cli which is also

play14:59

amazing in a lot of ways especially when

play15:02

we dive more into the developer side of

play15:04

things let me know what you think about

play15:06

cloudfare workers in general what do you

play15:08

feel about this video do you want to see

play15:10

more content around cloudflare let me

play15:12

know what you think and we can

play15:14

build something more probably a small

play15:17

course short course on youtube as well

play15:19

but that's all for this video i'm gonna

play15:20

see you in the next one really soon so

play15:23

make sure you comment down below what

play15:24

you're gonna see next on cloudfare if

play15:27

you're still watching this video make

play15:28

sure you comment down in the comment

play15:30

section i watched this video till the

play15:33

end also if you're not part of code

play15:34

dam's discord community you are missing

play15:37

out a lot on events which we organize on

play15:40

a weekly basis to code you already know

play15:42

the drill make sure you like the video

play15:44

subscribe to the channel if you haven't

play15:45

already and thank you so much for

play15:47

watching

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
Cloudflare WorkersCrash CourseWrangler 2Lambda FunctionsEdge ComputingGeolocationAPI ProxiesContent DeliveryDeveloper ToolsPerformance Optimization