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 💪
En esta página del sitio puede ver el video en línea Edge Functions - Just Another JavaScript Function de Duración hora minuto segunda en buena calidad , que subió el usuario Dev Kylo & The Great Sync 09 junio 2024, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 244 veces y le gustó 2 a los espectadores. Disfruta viendo!