10/7/2015 11:01:46 AM
NGINX Offers New JavaScript Virtual Machine
NGINX,Javascript,Virtual Machine
App Developer Magazine

NGINX Offers New JavaScript Virtual Machine

Richard Harris Richard Harris in Programming Wednesday, October 7, 2015

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...

Get your Pi Day 2019 Shirt

Love Is Like Pi Never Ending T-Shirt Math Pi day Gift Shirt. Perfect Shirt to celebrate Pi Day 2019. Great gift whether you just love Math or you are a Math Student, Teacher or similar.

475 Tax Deductions for Businesses and Self-Employed Individuals

Are you paying more taxes than you have to as a developer or freelancer? The IRS is certainly not going to tell you about a deduction you failed to take, and your accountant is not likely to take the time to ask you about every deduction you’re entitled to. As former IRS Commissioner Mark Everson admitted, “If you don’t claim it, you don’t get it.

A hands-on guide to mastering mobile forensics for iOS and Android

Get hands-on experience in performing simple to complex mobile forensics techniques Retrieve and analyze data stored not only on mobile devices but also through the cloud and other connected mediums A practical guide to leveraging the power of mobile forensics on popular mobile platforms with lots of tips, tricks, and caveats.

Gps tracker for kids

The Chirp GPS app is a top-ranked location sharing app available for Apple and Android that is super easy to use, and most of all, it's reliable.

The Latest Nerd Ranch Guide (3rd Edition) to Android Programming

Write and run code every step of the way, using Android Studio to create apps that integrate with other apps, download and display pictures from the web, play sounds, and more. Each chapter and app has been designed and tested to provide the knowledge and experience you need to get started in Android development.