I was recently asked to write an “edge function”. Once you understand what these are, you will realise they are not as complicate as they might sound 🤔
And of course, it’s just plain JavaScript. The same fundamental concepts are applied -making use of values like objects and arrays, and using the function “return” statement to make it clean and easy to read.
You might notice the odd genie 🧞♂️, flying ship 🚢 or sorcerer 🧙♀️. This is The Great Sync Mental Model - my visual and mnemonic method for learning and remembering fundamentals. Check out thegreatsync.com.
In this video, I explain the basics of what edge functions are, how they run between the user and the server, and how they intercept HTTP requests. You'll see a simple example of an edge function written in JavaScript.
Many hosting providers, like Vercel and Netlify, allow you to write your own edge functions if you want to experiment with them 💪
On this page of the site you can watch the video online Edge Functions - Just Another JavaScript Function with a duration of hours minute second in good quality, which was uploaded by the user Dev Kylo & The Great Sync 09 June 2024, share the link with friends and acquaintances, this video has already been watched 244 times on youtube and it was liked by 2 viewers. Enjoy your viewing!