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 💪
In questa pagina del sito puoi guardare il video online Edge Functions - Just Another JavaScript Function della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Dev Kylo & The Great Sync 09 giugno 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 244 volte e gli è piaciuto 2 spettatori. Buona visione!