当前位置: 首页 > 软件库 > 数据库相关 > >

lua-nginx-redis

授权协议 MIT License
开发语言 C/C++
所属分类 数据库相关
软件类型 开源软件
地区 不详
投 递 者 彭高畅
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Nginx与Lua编写脚本的基本构建块是指令执行顺序的图

Nginx 教程

基础

案例

模块

好文

流媒体

其他

Lua 教程

Redis 教程

Openresty 教程

Linux 教程

Shell 教程

微信公众号

  • ngx_lua开发往往需要与Redis做交互。以下有两种与redis的交互方式。 lua-resty-redis二次封装 使用OpenResty中的lua-resty-redis 这个模块操作 Redis。 对 lua-resty-redis进行了二次封装,封装了开箱即用的连接池,每次 Redis 使用完毕,自动释放 Redis 连接到连接池供其他请求复用。 封装了针对hash/set数据类型的操

  • 背景 我们的服务本来使用一组redis,以一致性哈希的方式来使用,现在打算替换为云平台的redis集群服务,因此需要设计一个平滑过渡的方案。解决方案并不难,两种方式可以使用不同的key,对于一种key使用ring_redis,另一种使用redis集群,这样只需要在redis库的接口内部进行key的解析,就无需对其他代码做过多改动了。 实现并不难,但在测试时,遇到个很诡异的问题:从redis中取一个

  • 简介 安装完Tengine后,由于公司现有业务涉及到lua脚本的定制开发,但是nginx add/remove 模块(module)都需要从新编译,Tengine 提供 dso_tool 解决了这个问题,至于为何选用 Openresty 的 lua-nginxmodule模块,还需要介绍一下Openresty。 OpenResty(https://openresty.org/cn/) OpenRe

  • 前言 商城或web站点的用户访问量出乎意料地增加了很多,超出了系统的负载能力, 系统有些扛不住,继而导致注 册,下单,支付什么的全部在绕圈卡住,继而导致公司业务损失了不少用户和订单。。 一、引子 面对一大波访问量出乎意料地涌入,超出了系统正常的负载范围,我们可以采用降级来应对,何谓降级?就是将不重要的服务和功能采用屏蔽,或降低实时性,或延迟处理,等等方式,最终目的是保证核心服务可用。 二、什么是降

  • location /red { default_type "text/html"; content_by_lua_block{ local redis = require "resty.redis" -- 引入Redis local redisObj = redis:new() --创建Redis对象 redisObj:set_ti

  • 本文介绍如何用Nginx+Lua+Redis来构建高并发Web应用,Curl请求Nginx,Nginx通过Lua查询Redis,返回json数据。 一、安装 关于Nginx+Lua相关信息请参看这里。 1、安装lua-redis-parser #git clone #export LUA_INCLUDE_DIR=/usr/include/lua5.1 #make CC=gcc #make inst

  • 基于lua-resty-redis的redis连接池 [轮] @author karminski <code.karminski@outlook.com> @version 161028:3 @link http://blog.eth6.org/src/wheel/redis_connection_pool_with_lua_nginx_module.html 这几天用

 相关资料
  • This module embeds the Lua interpreter or LuaJIT into the nginx core and integrates the powerful Lua threads (aka Lua coroutines) into the nginx event model by means of nginx subrequests. Unlike Apach

  • lua-nginx-module (ngx_lua) 可在 Nginx 中嵌入 Lua 语言。让 Nginx 可以支持 Lua 强大的语法。 概要: # set search paths for pure Lua external libraries (';;' is the default path): lua_package_path '/foo/bar/?.lua;/blah/?.lua;

  • This Nginx C module exposes a Lua API to Lua Nginx Module for classic Nginx upstreams. Documentation: https://github.com/agentzh/lua-upstream-nginx-module Project page: https://github.com/agentzh/lua-

  • ngx_tcp_lua_module-将Lua的功能嵌入Nginx服务器。在tcp流模式下工作。 基于nginx1.4.1版本, 本着精简,高效,模块化等原则,吸收nginx-http-lua模块(https://github.com/openresty/lua-nginx-module), tcp_lua模块(https://github.com/bigplum/nginx-tcp-lua-mo

  • nginx-lua-ds-loadbalancer 是一个HTTP负载均衡器,基于liseen/lua-resty-http A http loadbalancer which is based on liseen/lua-resty-http 将代码放在位于nginx根目录下的lua/ds_lb/下 Put the code into the directory lua/ds_lb which

  • 这个软件是 Nginx C 模块用于展示 Lua API 给 ngx_lua for Nginx upstreams 。该模块可以用于生产环境。   Synopsis http {    upstream foo.com {        server 127.0.0.1 fail_timeout=53 weight=4 max_fails=100;        server agentzh.o