1. https://appdevelopermagazine.com/programming
  2. https://appdevelopermagazine.com/nginx-offers-new-javascript-virtual-machine/
10/7/2015 11:01:46 AM
NGINX Offers New JavaScript Virtual Machine
NGINX,Javascript,Virtual Machine
/NGINX-App-Developer-Magazine_sphvpisz.jpg
App Developer Magazine
NGINX Offers New JavaScript Virtual Machine

Programming

NGINX Offers New JavaScript Virtual Machine


Wednesday, October 7, 2015

Richard Harris Richard Harris


NGINX has announced the preview release of nginScript, a new JavaScript Virtual Machine (VM) that combines JavaScript with the NGINX web server platform to offer scripting capabilities to enable dynamic application delivery.

The release of nginScript gives developers a new way to use the NGINX platform to help craft the user experience and shaping the interactions between inbound requests and the response delivered, using JavaScript and the ability to respond in real-time. 

nginScript consists of two parts:

1) A custom virtual machine (VM) and byte-code compiler with a fast start-up and tear-down time. Blocking operations, such as an HTTP subrequest, can be suspended and resumed, in the same way as other blocking operations in JavaScript.

2) A configuration syntax for embedding snippets of JavaScript in an NGINX configuration. These snippets are evaluated at runtime, as HTTP transactions proceed. Developers can create conditional configurations, modify requests and responses on the fly, and adjust the internal operations of NGINX specifically for each request.

The advanced scripting capabilities offered from nginScript can provide developers with greater control over the response between inbound user requests to web applications and the response sent back. This creates a new layer of control for developers that, when fully released in production, will enable:

- Rapid response to issues in applications: Fix bugs, close off vulnerabilities, or address changes in business rules. With nginScript, developers will be able to inspect all aspects of a request and response, and modify data or block transactions. This include the ability to control authentication, and rate-limit and queue requests to enforce business policies.

- Consolidate functions across applications: Streamline applications and microservices by moving repeated functionality out of applications, such as authentication and security policies, and into the NGINX-powered delivery platform.

- Modify or personalize the user experience: Developers will be able to use nginScript to respond to specific inbound requests and data points to implement A/B testing, to prioritize more valuable visitors, to enable sophisticated caching, and even to implement content personalization.

- Richer control over traffic: JavaScript’s expressive language provides no limit to the potential sophistication of nginScript rules.

- Defend against denial-of-service or request overruns: Monitor request volumes across a cluster using a shared database, and dynamically respond to abusive users by rate-limiting or denying requests.



Read more: https://www.nginx.com/blog/launching-nginscript-an...




Subscribe to App Developer Magazine

Become a subscriber of App Developer Magazine for just $5.99 a month and take advantage of all these perks.

MEMBERS GET ACCESS TO

  • - Exclusive content from leaders in the industry
  • - Q&A articles from industry leaders
  • - Tips and tricks from the most successful developers weekly
  • - Monthly issues, including all 90+ back-issues since 2012
  • - Event discounts and early-bird signups
  • - Gain insight from top achievers in the app store
  • - Learn what tools to use, what SDK's to use, and more

    Subscribe here



Featured Stories


Spotify and UMG strike landmark AI music licensing deal
Spotify and UMG strike landmark AI music licensing deal Thursday, May 28, 2026


Anthropic investigation opened after Mythos accessed by Discord group
Anthropic investigation opened after Mythos accessed by Discord group Wednesday, May 27, 2026


AI layoffS: What is really behind it all
AI layoffS: What is really behind it all Tuesday, May 26, 2026




The identity system is failing under AI
The identity system is failing under AI Monday, May 25, 2026


The Real World Launches Expert-Verified AI Certification Framework
The Real World Launches Expert-Verified AI Certification Framework Friday, May 22, 2026


Multiple language options when developing apps with Evoke
Multiple language options when developing apps with Evoke Thursday, May 21, 2026


When Social Listening Becomes Social Surveillance
When Social Listening Becomes Social Surveillance Wednesday, May 20, 2026


Medical debt relief custom-built platform moopFi launches
Medical debt relief custom-built platform moopFi launches Tuesday, May 19, 2026


Quant Pros Say AI Is Widening the Skills Gap
Quant Pros Say AI Is Widening the Skills Gap Monday, May 18, 2026


Tether QVAC SDK Powers AI Across Devices and Platforms
Tether QVAC SDK Powers AI Across Devices and Platforms Wednesday, April 22, 2026


Stay Updated

Sign up for our newsletter for the headlines delivered to you

SuccessFull SignUp

Get More App News



/sites/themes/prod/assets/js/less.js"> ' ' %>