Best Website-BuildersBest Website-Builders
    What's Hot

    Senate GOP leader Mitch McConnell hospitalized after fall

    March 9, 2023

    Stanford student reporter behind explosive investigation

    March 9, 2023

    Biden Wants Paid Parental Leave, Free Preschool for All US Workers

    March 9, 2023
    Facebook Twitter Instagram
    Facebook Twitter Instagram
    Best Website-BuildersBest Website-Builders
    • Home
    • CSS

      National Assembly amends standing order to allow CS to attend House of Commons from 23 March » Capital News

      March 9, 2023

      Apple Releases Safari Technology Preview 165 – Brings Bug Fixes and Performance Improvements

      March 9, 2023

      15 Best Courses to Become Full Stack Developer in 2023

      March 9, 2023

      Junior DevOps Engineer at Datafin Recruitment

      March 9, 2023

      Cricket betting tips and fantasy cricket match predictions: Sharjah Hundred League 2023

      March 9, 2023
    • Joomla

      Web Content Management Systems Market Business Growth Potential 2023-2030

      March 6, 2023

      How to create a successful content strategy framework

      March 3, 2023

      Free Website Hosting Services for Efficient and Reliable Work

      March 2, 2023

      Bluehost Review 2023 – Is It the Fastest Hosting Service?

      March 2, 2023

      Intermediate PHP Developer – IT-Online

      March 1, 2023
    • PHP

      Stanford student reporter behind explosive investigation

      March 9, 2023

      Seth Rogen got brutally honest about not having kids

      March 9, 2023

      you season 4 part 2 review

      March 9, 2023

      Jennifer Lawrence is reinventing herself for a comeback

      March 9, 2023

      March 9, 2023 — Biggest news story of the day

      March 9, 2023
    • UX

      Imagine your company posting your vacancies on LinkedIn.

      March 9, 2023

      Imagine your job posting being posted.

      March 9, 2023

      Top Design Agencies in March, According to DesignRush

      March 9, 2023

      Spotify announces new tools and features to improve user experience

      March 9, 2023

      Think Silicon to Showcase Latest Ultra-Low-Power Graphics and AI Solutions for Edge Computing at Embedded World 2023

      March 9, 2023
    • Web Builders
      1. Web Design
      2. View All

      What Comes First in Website Development — Design or Copy?

      February 2, 2023

      Modern Campus Honors Best Higher Education Websites of 2022

      February 2, 2023

      Premier SEO Consultant in Las Vegas, Nevada with Unparalleled Customer Service

      February 2, 2023

      Can Religious Freedom Be Saved? This group is racing the clock to teach America’s first freedom

      February 2, 2023

      How i Create New Google Account

      February 7, 2023

      CWT powers tools for meeting and event planners

      January 31, 2023

      Best Website Builder – Website Builders

      January 24, 2023

      Is There A Market For Rap-Themed Slot Games? – Rap Review

      January 19, 2023
    • WordPress

      Business Note: Stop Using the Worst Passwords Possible

      March 9, 2023

      Russian hackers try to set up video calls to spread anti-Western propaganda

      March 9, 2023

      Creed 3 is coming to Prime Video soon, but it won’t be available to stream for free

      March 9, 2023

      Bing now has 100 million users powered by ChatGPT, but will it continue?

      March 9, 2023

      This is the gaming laptop deal you need to buy now if you care about portability.

      March 9, 2023
    • Realtoz
      • Our Other Sites
    • More News
    Best Website-BuildersBest Website-Builders
    Home » Middleware Enterprise Features Come to JavaScript Thanks to Vercel
    JavaScript

    Middleware Enterprise Features Come to JavaScript Thanks to Vercel

    websitebuildersnowBy websitebuildersnowJune 28, 2022No Comments4 Mins Read
    Facebook Twitter LinkedIn Telegram Pinterest Tumblr Reddit WhatsApp Email
    Share
    Facebook Twitter LinkedIn Pinterest Email


    JavaScript is widely used and well-understood in servers and web browsers to enable advanced functionality, but until now it has generally lacked middleware.

    Well-funded web development startup Vercel is now evolving its open-source next.js JavaScript framework with a new 12.2 version update on June 28th. This includes what the company calls JavaScript middleware. The concept of middleware is to provide functionality required for enterprise application delivery, such as authorization and geographic localization.

    In addition to middleware, the open source next.js 12.2 release also introduces a feature called On-Demand Incremental Static Regeneration (ISR). This helps to significantly accelerate the delivery of your website. In the past, organizations cached certain website pages to improve performance, but the information wasn’t always up-to-date. On-demand ISR allows you to deliver pages with up-to-date information more quickly.

    Vercel itself has accelerated its development efforts over the past year thanks to a $150 million funding round the company announced in November 2021. Vercel and the next.js framework have been big benefactors as companies of all sizes have raced to support their digital transformation efforts, which often involve advanced website application functionality.

    “We have seen a lot of traction in e-commerce, consumer mobile web apps like TikTok and Twitch. Most of it runs on next.js,” says Guillermo Rauch. Vercel founder and CEO told VentureBeat:

    Why you need JavaScript middleware

    A key highlight of the next.js 12.2 update is the stable release of next.js middleware, which has been in beta since next.js 12.0 first appeared in October 2021.

    Rauch explained that the term middleware is used because technology sits between user requests and content. He said that next.js middleware allows developers to add dynamic code and routing to JavaScript requests.

    “It can do everything you would expect from other middleware technologies: authentication, authorization, redirection, rewriting, personalizing and testing new features,” Rauch said.

    Despite their similar names, middleware for other programming languages ​​such as Java, which has nothing to do with JavaScript, often requires another server technology to run. In contrast, next.js middleware is just a single file that is deployed to your web server.

    “You can literally just add one file, middleware.ts, and start writing your logic,” says Rauch.

    The middleware.ts file is in some respects an evolution of the next.js configuration file, which defines configuration parameters for deployment. Rauch pointed out that the configuration file only offers what he calls “rudimentary” options such as custom headers and redirects. With middleware, developers can build in any logic they need to run their applications, he said.

    Bring middleware to the edge

    For open source developers, integrating middleware configuration into application code is one thing, but enabling that configuration to run in an optimized approach is quite another.

    This is where Vercel’s Edge Middleware capabilities come into play. Edge Middleware is a commercially supported service that runs next.js on the Vercel platform to provide faster performance and lower latency.

    Vercel is the lead developer of the open source next.js framework and provides commercial services for supporting and delivering applications at scale. Vercel services are powered by Amazon Web Services (AWS) and Cloudflare infrastructure.

    Migrating from caching to on-demand ISR

    The open source next.js 12.2 update is also notable for the introduction of on-demand ISRs for web content.

    Web content can be dynamically generated by a Web server, but the process can be time consuming. As such, high-traffic applications often prefer using cached or static content.

    According to Rauch, with ISRs static content is updated when there is a corresponding update in the source data source for a given application. Prior to the next.js 12.2 update, the way ISRs worked was the web server periodically checking for updates.

    A new on-demand feature allows web applications to notify servers via webhooks when data is updated, making updates faster in next.js 12.2 than in previous releases of the JavaScript framework.

    What’s next for next.js?

    The next.js 12.2 release introduces several experimental features that show the future direction of the technology.

    Among the experimental features is the use of the Edge runtime. Rauch said that next.js has used the node.js runtime since its creation, but now users are using You mentioned that you have the option to use the Edge runtime compatible with the WinterCG initiative.

    “This is a new era of JavaScript runtimes optimized for the server, not the browser,” said Rauch. “The Edge runtime is basically an effort to say that this is his Vercel implementation of WinterCG, and we plan to open source that effort as well.”

    Mission of VentureBeat will become a digital town square for technical decision makers to gain knowledge on innovative enterprise technology and trade. Watch the briefing.



    Source link

    Share this:

    • Tweet
    • Email
    • Pocket
    • Mastodon
    • WhatsApp
    • Telegram
    • Share on Tumblr
    • Print
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Telegram Email
    Previous ArticleFuture web design and development
    Next Article Top 10 Content Management Systems in 2022
    websitebuildersnow
    • Website

    Related Posts

    DAP — Web3’s New App Success Metrics | Eric Elliot | | The JavaScript Scene | March 2023

    March 9, 2023

    Top 10 AI Extensions for Visual Studio Code — Visual Studio Magazine

    March 8, 2023

    Top 10 AI Extensions for Visual Studio Code — Visual Studio Magazine

    March 8, 2023
    Add A Comment

    Leave a Reply Cancel reply

    Top Posts

    Subscribe to Updates

    Get the latest sports news from SportsSite about soccer, football and tennis.

    Advertisement
    Demo

    This website provides information about CSS and other things. Keep Supporting Us With the Latest News and we Will Provide the Best Of Our To Makes You Updated All Around The World News. Keep Sporting US.

    Facebook Twitter Instagram Pinterest YouTube
    Top Insights

    Senate GOP leader Mitch McConnell hospitalized after fall

    March 9, 2023

    Stanford student reporter behind explosive investigation

    March 9, 2023

    Biden Wants Paid Parental Leave, Free Preschool for All US Workers

    March 9, 2023
    Get Informed

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    © 2023 bestwebsite-builders. Designed by bestwebsite-builders.
    • Home
    • About us
    • Contact us
    • DMCA
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.