netlify-edge-functions-2026.html
< BACK Netlify Edge Functions 2026 में: ये क्या हैं और Functions से कैसे अलग हैं -- line-art illustration

Netlify Edge Functions 2026 में: ये क्या हैं और Functions से कैसे अलग हैं

Netlify Edge Functions ऐसे JavaScript या TypeScript functions हैं जो Netlify के network edge पर Deno पर चलते हैं, हर visitor के सबसे करीब की जगह पर, एक single serverless region में नहीं। ये उस काम के लिए tool हैं जो response से पहले या उसके आसपास होना चाहिए: redirects, auth checks, geolocation, personalisation, और streaming। 2026 में ज्यादा आम सवाल ये नहीं है कि ये क्या हैं, बल्कि ये plain Netlify Functions से कैसे अलग हैं, और आपका code किसमें होना चाहिए। यहाँ सच्चा संस्करण है। Edge Functions are JavaScript or TypeScript functions that run on Deno at Netlify's network edge, in the location closest to each visitor, rather than in a single serverless region. They are the tool for work that has to happen before or around the response: redirects, auth checks, geolocation, personalisation, and streaming. In 2026 the more common question is not what they are, but how they differ from plain Netlify Functions, and which one your code belongs in. Here is the honest version.

मुख्य बात: Netlify Edge Functions नेटवर्क edge पर Deno चलाते हैं रीडायरेक्ट्स और personalization के लिए, जबकि सादे Netlify Functions AWS Lambda पर Node.js का उपयोग करते हैं भारी API और backend काम के लिए।Netlify Edge Functions run on Deno at the network edge for redirects and personalisation, while plain Netlify Functions use Node.js on AWS Lambda for heavier API and backend work.

Netlify Edge Functions क्या हैं?

Netlify Edge Functions Deno-based functions हैं जो Netlify के network के edge पर execute होते हैं, user के करीब। क्योंकि ये Deno पर चलते हैं, एक open, web-standards runtime, आपको fetch, Request, और Response जैसे APIs मिलते हैं पूरी Node.js surface के बजाय। ये आपकी site के सामने बैठते हैं और एक request को पढ़ या फिर से लिख सकते हैं इससे पहले कि वो आपके pages तक पहुँचे, जिससे ये middleware-style काम के लिए सही जगह है: redirects, A/B tests, locale routing, bot filtering, और auth gates।Deno, an open, web-standards runtime, you get APIs like fetch, Request, and Response rather than the full Node.js surface. They sit in front of your site and can read or rewrite a request before it reaches your pages, which makes them the right home for middleware-style work: redirects, A/B tests, locale routing, bot filtering, and auth gates.

Netlify Edge Functions बनाम Netlify Functions: क्या फर्क है?

छोटा संस्करण: Netlify Functions AWS Lambda पर regional serverless functions हैं, और Netlify Edge Functions Deno पर edge पर चलते हैं। व्यावहारिक फर्क:

  • वे जहां चलते हैं: Functions एक AWS region में चलते हैं। Edge Functions निकटतम point of presence पर चलते हैं जहां visitor है।: Functions run in one AWS region. Edge Functions run at the point of presence nearest the visitor.
  • Runtime: Functions आपको Node.js environment और npm ecosystem देते हैं। Edge Functions आपको Deno और web-standard APIs देते हैं, इसलिए Node-only packages काम नहीं कर सकते।: Functions give you the Node.js environment and the npm ecosystem. Edge Functions give you Deno and web-standard APIs, so Node-only packages may not work.
  • Timeouts: Functions request और response work के लिए बनाए गए हैं जिनमें एक छोटी execution window होती है। Edge Functions हल्के और तेज़ होने के लिए डिज़ाइन किए गए हैं, हर matching request पर चलते हैं।: Functions are built for request and response work with a short execution window. Edge Functions are meant to be light and fast, running on every matching request.
  • Free limits: free tier में 125,000 serverless function invocations और 1,000,000 edge function invocations प्रति महीने शामिल हैं, इसलिए edge work के पास कहीं ज्यादा headroom है।: the free tier includes 125,000 serverless function invocations and 1,000,000 edge function invocations a month, so edge work has far more headroom.
  • Best use: Functions का उपयोग तब करें जब आपको real packages, longer work, या backend-style API की जरूरत हो। Edge Functions का उपयोग redirects, personalisation, streaming, और कुछ भी जो user के करीब होना चाहिए, के लिए करें।: reach for Functions when you need real packages, longer work, or a backend-style API. Reach for Edge Functions for redirects, personalisation, streaming, and anything that should happen close to the user.

Netlify अपने Edge Functions overview में runtime और limits को document करता है।Edge Functions overview.

क्या Netlify free है, और क्या Edge Functions शामिल हैं?

हां। Netlify की free Starter plan genuinely free है जिसमें कोई card की आवश्यकता नहीं है, और Edge Functions हर plan पर शामिल हैं, free वाले सहित। Starter tier आपको 100 GB bandwidth, 300 build minutes, 125,000 serverless function calls, और 1,000,000 edge function calls प्रति महीने देता है, साथ ही deploy previews, custom domains with SSL, और global CDN। Paid plans Pro tier से शुरू होते हैं, लगभग 19 US dollars प्रति member प्रति महीना, और included limits से ऊपर credit-based usage पर जाते हैं।

आपको Netlify Edge Functions कब use करने चाहिए?

Edge Functions का उपयोग तब करें जब work को user के करीब होना चाहिए या page render होने से पहले:

  • उन्हें जियोलोकेशन रीडायरेक्ट, लोकेल रूटिंग, A/B टेस्ट, ऑथ और बॉट चेक, रिक्वेस्ट और रेस्पांस रीराइटिंग, और स्ट्रीमिंग रेस्पांस के लिए उपयोग करें। geolocation redirects, locale routing, A/B tests, auth and bot checks, request and response rewriting, and streaming responses.
  • API एंडपॉइंट, npm पैकेज या Node बिल्ट-इन की जरूरत वाले काम, डेटाबेस कॉल, और कोई भी लंबे समय तक चलने वाले काम के लिए इसके बजाय plain Netlify Functions का उपयोग करें। API endpoints, work that needs npm packages or Node built-ins, database calls, and anything longer-running.
  • उन्हें छोटा रखें। Edge Function हर मेल खाने वाली रिक्वेस्ट पर चलता है, इसलिए वहां भारी लॉजिक हर बार भुगतान किया जाता है। An Edge Function runs on every matching request, so heavy logic there is paid on every hit.

Netlify Edge Functions की तुलना Vercel और Cloudflare से कैसे होती है?

तीनों edge पर कोड चलाते हैं, लेकिन अलग-अलग रनटाइम पर। Netlify Edge Functions Deno का उपयोग करते हैं। Vercel का Edge रनटाइम V8 isolates का उपयोग करता है और अब Vercel Functions पर चलता है इसके 2025 के परिवर्तन के बाद, जिसे हम Vercel Edge explainer में कवर करते हैं। Cloudflare Workers भी V8 isolates का उपयोग करते हैं और सबसे व्यापक edge नेटवर्क रखते हैं। यदि आप प्लेटफॉर्म के बजाय रनटाइम का तुलना कर रहे हैं, तो हमारा Netlify vs Vercel comparison और व्यापक cloud hosting breakdown गहराई में जाता है। रनटाइम लेयर विशेष रूप से, edge compute directory देखें।Vercel's Edge runtime uses V8 isolates and now runs on Vercel Functions after its 2025 change, which we cover in the Vercel Edge explainer. Cloudflare Workers also use V8 isolates and have the widest edge network. If you are weighing the platforms rather than the runtimes, our Netlify vs Vercel comparison and the broader cloud hosting breakdown go deeper. For the runtime layer specifically, see the edge compute directory.

FAQ

Netlify Functions और Edge Functions के बीच अंतर क्या है?

Netlify Functions AWS Lambda पर क्षेत्रीय serverless फंक्शन हैं, Node.js रनटाइम के साथ API और backend काम के लिए बनाए गए हैं। Edge Functions Deno पर नेटवर्क edge पर, यूजर के करीब चलते हैं, और रीडायरेक्ट, व्यक्तिगतकरण, और स्ट्रीमिंग के लिए बनाए गए हैं। Functions आपको npm पैकेज देते हैं; Edge Functions आपको गति और web-standard APIs देते हैं।

क्या Netlify Edge Functions मुफ्त हैं?

हां। Edge Functions हर Netlify प्लान में शामिल हैं, जिसमें मुफ्त Starter टियर भी शामिल है, जो महीने में 1,000,000 edge function invocations को कवर करता है। यह उसी मुफ्त टियर पर 125,000 serverless function invocations की तुलना में बहुत अधिक headroom है। शामिल सीमाओं से ऊपर का उपयोग paid plans पर credit-based प्राइसिंग में चला जाता है।

Netlify Edge Functions किस runtime का उपयोग करते हैं?

Netlify Edge Functions Deno पर चलते हैं, जो एक खुला, वेब-मानक runtime है। आप JavaScript या TypeScript को fetch, Request, और Response जैसे APIs के विरुद्ध लिखते हैं, पूरी Node.js सतह के बजाय। ऐसे पैकेज जो Node built-ins पर निर्भर हैं, वे नहीं चल सकते, इसलिए सर्वर कोड को port करने से पहले compatibility जाँच लें।

मुझे Edge Function का उपयोग Function की जगह कब करना चाहिए?

Edge Function का उपयोग तब करें जब काम उपयोगकर्ता के पास चलना चाहिए या पृष्ठ render होने से पहले: redirects, geolocation, locale routing, A/B tests, auth checks, और streaming के लिए। साधारण Netlify Function का उपयोग API endpoints, डेटाबेस काम, और कुछ भी जिसे npm packages या लंबी execution window की जरूरत हो, के लिए करें।

संक्षिप्त संस्करण: Netlify Functions आपका regional serverless backend है, Netlify Edge Functions आपका तेज़, Deno-संचालित edge पर परत है। अधिकांश साइटें दोनों का उपयोग करती हैं—API के लिए Functions और redirects तथा personalisation के लिए Edge Functions इसके सामने। जहाँ काम को होना चाहिए वहाँ चुनें, न कि किसी को नया होने के आधार पर।

< BACK