Edge Functions - Just Another JavaScript Function

Опубликовано: 09 Июнь 2024
на канале: Dev Kylo & The Great Sync
244
2

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 💪


На этой странице сайта вы можете посмотреть видео онлайн Edge Functions - Just Another JavaScript Function длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Dev Kylo & The Great Sync 09 Июнь 2024, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 244 раз и оно понравилось 2 зрителям. Приятного просмотра!