JSON(JavaScript Object Notation) is a lightweight data exchange format. Easy to read and write. It is also easy to parse and generate machines. It is based on a subset of JavaScript programming language, standard ECMA-262 3rd edition-December 1999.
Ngx_lua embeds Lua into nginx and enables nginx to execute Lua scripts to process various requests with high concurrency and non-blocking.
The URL requests the nginx server, Lua queries redis, and returns JSON data.
1. Install LUA-nginx-Module
See
I'm using the Lua Cjson Library, a high-performance JSON parser and encoder with a 10~20-fold performance over pure LUA libraries. and LUA JSON fully supports UTF-8, without having to do with other Lua/luajit-related packages.
Environment
Ngx_lua Lua into Nginx, let Nginx run Lua script. High concurrency, non-clogging process for various requests.The URL requires Nginxserver, and LUA queries Redis to return the JSON data.I. Installation Lua-nginx-moduleSee the architecture of
I. Introduction and Examples
Jayrock is an open-source lgpl software that implements JSON and JSON-RPC and supports Microsoft ASP. NET Framework.
JSON + jayrock + ASP. NET Quick Start: http://jayrock.berlios.de/#quick-start
Introduction to
JSON(JavaScript Object Notation) is a lightweight data exchange format. Easy to read and write. It is also easy to parse and generate machines. It is based on a subset of JavaScript programming language, standard ECMA-262 3rd edition-December 1999.
This article describes how to build high concurrent Web applications with Nginx+lua+redis, curl requests Nginx,nginx to return JSON data through Lua query Redis.
First, installation1. Installation Lua-redis-parser
Copy Code code as follows:
Network Working Group D. crockford
Request for comments: 4627 json.org
Category: informational July 2006 the application/JSON media type for JavaScript Object Notation (JSON) status of this memo provides information for the Internet community. it
Network working Group D. crockfordrequest for comments:4627 JSON.orgCategory:Informational July 2006 the Application/json Media The Type for JavaScript Object Notation (JSON) Status of this memo is this memo provides information for the Internet
Summary
JavaScript Object Notation (JSON) is a lightweight, text-based, language-independent data exchange format. It is derived from the ecmascript language standard. JSON defines a small set of formatting rules for lightweight representation of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.