Cache Placement Strategies for NGINX and NGINX Plus

2016-01-28 KENNETH 0 { border-collapse: collapse; } td { border: 1px solid black; padding: 5px; } In the previous article in this caching series, we looked at the benefits of microcaching – caching dynamic content for very short periods of time – which sometimes leads to very significant performance improvement. In this article, we’ll consider another aspect of caching, that of cache placement, and we’ll look at strategies for dealing with slow cache storage. Selecting a Cache Location NGINX can manage multiple cache locations, each mapped to a different filesystem location, and you can configure NGINX to choose which cache to use on a per-request basis. In the following sample configuration, the proxy_cache_path directives create two caches, ssd_cache and disk_cache, mounted on the local directories /mnt/ssd/cache and /mnt/disk/cache respectively. The map directive inspects the request URL and selects disk_cache for all requests that appear to [ more… ]

No Image

Service Discovery with NGINX Plus and Consul

2016-01-27 KENNETH 0

Service discovery is a key component of most distributed systems and service-oriented or microservices architectures. Because service instances have dynamically assigned network locations which can change over time due to autoscaling, failures, or upgrades, clients need a sophisticated service discovery mechanism for tracking the current network location of a service instance. This blog post describes how to dynamically add or remove load-balanced servers that are registered with Consul, a popular tool for service discovery. The solution uses NGINX Plus’ on-the-fly reconfiguration API, which eliminates the need to reload NGINX Plus configuration file when changing the set of load-balanced servers. With NGINX Plus Release 8 (R8), changes you make with the API now persist across restarts and configuration reloads. Consul, developed by HashiCorp, is most widely used for discovering and configuring services in your infrastructure. It also provides failure detection (health checking), a [ more… ]

Smart and Efficient Byte-Range Caching with NGINX & NGINX Plus

2016-01-22 KENNETH 0

When correctly deployed, caching is one of the quickest ways to accelerate web content. Not only does caching place content closer to the end user (thus reducing latency), it also reduces the number of requests to the upstream origin server, resulting in greater capacity and lower bandwidth costs. The availability of globally-distributed cloud platforms like AWS and DNS-based global load balancing systems such as Route53 make it possible to create your own global content delivery network (CDN). In this article, we’ll look at how NGINX can cache and deliver traffic that is accessed using byte-range requests. A common use case is HTML5 MP4 video, where requests use byte ranges to implement trick-play (skip and seek) video. Our goal is to implement a caching solution for video delivery that minimizes user latency and upstream network traffic. Our Test Framework We need [ more… ]

Flawless Application Delivery – NGINX’s Vision to Enable the Digital Future

2016-01-20 KENNETH 0

The following is adapted from a talk given by NGINX CEO Gus Robertson at nginx.conf 2015, held in San Francisco in September. Watch a video of the talk here. Table of Contents 0:00 Introduction 1:04 NGINX – Powering the World’s Busiest Websites 2:10 Where We’re Heading 4:36 Extraordinary Things 6:00 Changing the World 8:22 Flawless Application Delivery 0:00 Introduction Welcome to the second annual NGINX User Conference. My name is Gus Robertson. I’m the CEO of NGINX and I’ve been in open source now for well over a decade. I’ve been with NGINX for around three years, and I’ve seen some amazing milestones in those three years that I wanted to share with you this morning. 1:04 NGINX – Powering the World’s Busiest Websites Back in 2013, we became the number one web server for the 1,000 busiest websites in [ more… ]

Introducing the OAuth Technology Preview in NGINX Plus R8

2016-01-20 KENNETH 0

Getting identity management right in modern application and API development is an increasingly important and demanding challenge. A number of developments in the industry are putting pressure on existing identity solutions. Integrated web experiences enable users to navigate seamlessly between different applications without requiring multiple login events. User experience is improved by giving users a choice about which identity they use with a given application, instead of requiring yet another password in yet another isolated, proprietary database. Microservices architectures (and decomposed monoliths) can require developers to reimplement the same authentication and authorization logic over and over. Applications deployed at scale (in a cluster) need to offload as many non-core operations as possible, for example encryption and authentication. Supporting the numerous existing identity standards involves undifferentiated heavy lifting that impinges on time spent on the application itself. At NGINX we are [ more… ]