`
liuxinglanyue
  • 浏览: 561400 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

Redis tutorial, April 2010

阅读更多

文章太长了,下面是其中的一小部分

转:http://simonwillison.net/static/2010/redis-tutorial/

 

Redis workshop
NoSQL Europe, 22nd April 2010
Simon Willison - @simonw - simonwillison.net

These slides and notes were originally written to accompany a three hour Redis tutorial I gave at the NoSQL Europe conference on the 22nd of April 2010.

Please post any comments, feedback or corrections to theaccompanying blog entry.

You can find me online at simonwillison.net and @simonw.

What is Redis?
Remote Dictionary Server?
A key-value store?
... but it does list and set operations
A data-structure server?
... but it has pub/sub and notifications
A non-blocking event bus?
Network accessible shared memory?

Redis is currently one of my favourite open source projects. I like it because it scales down as well as up - it's equally useful for tiny projects running on a single VPS as it is for huge services running across dozens of servers. At either end of the scale it lets you build things that would be a lot harder (and more expensive) using traditional tools.

Because Redis does so much, it's hard to precisely categorise it. It feels substantially different to the other software that tends to be packaged under the NoSQL brand.

A photo of a pen-knife, subtitled A little server of awesome

It's like a good pen-knife or multitool - it solves a bunch of different but related problems, all in a convenient pocket sized wrapper.

(Photo by herzogbr)

Whatever it is...
It’s screamingly fast
Non-blocking I/O, single threaded
100,000+ read/writes a second
It’s tiny: ~16,000 lines of C
It scales down: single VPS friendly
It makes new types of feature - in particular write-heavy ones - feasible for small apps
It complements your existing storage layer

Performance is Redis's killer feature. I get 80,000+ operations a second on my laptop - proper server hardware will get even more. It handles writes even faster than it handles reads, which makes it useful for a whole bunch of interesting problems. Because it's so fast, a whole class of features which most resource-constrained web applications would never even consider suddenly become feasible.

The performance is principally down to Redis keeping the entire dataset in memory, and only periodically syncing to disk. You can trade performance for improved durability in various ways.

(Very) brief background
Created by Salvatore Sanfilippo, aka antirez
(Possibly my favourite open source maintainer of all time)
First release March 2009
“Acquired” by VMWare March 2010
Open source, BSD licensed

Salvatore is fantastic. He's incredibly responsive to feature suggestions and bug reports, a constant presence on the mailing list, churns out an astonishing amount of high quality code and displays excellent taste in picking which features go in to the product. Irequested a feature on Twitter once (SRANDMEMBER) and he checked in an implementation less than 12 hours later!

Up until March, he was working on Redis in addition to consulting and his own startup. He's since been hired by VMWare, which means he'll be working full time on the Redis project.

分享到:
评论

相关推荐

    shiro-redis-tutorial:shiro-redis教程

    shiro-redis-tutorial 这是一个教程,可帮助您了解如何使用shiro-redis 。 本教程使用shiro.ini配置shiro和shiro-redis 。如何使用它? 使用以下注释将shiro-redis-tutorial克隆到磁盘: git clone ...

    Redis-Tutorial.docx

    ### Redis 开发教程知识点概述 #### 一、Redis 基础概念与应用场景 - **定义**:Redis 是一个开源的内存数据结构存储系统,它不仅可以用作数据库,还可以作为缓存和消息代理。 - **许可协议**:Redis 采用 BSD 许可...

    redis-tutorial.pdf

    ### Redis 教程知识点概述 #### 一、Redis简介与特性 Redis是一种开源的、BSD许可的高级键值存储系统。由于其强大的数据结构服务功能,Redis常常被称为数据结构服务器。这里的键可以包含多种类型的数据,例如字符...

    windows下的redis源码,vs2010版

    https://github.com/MSOpenTech/redis就是这个的,不过这里下下来的不能用,我自己搞了好久才搞了一个可以用的,主要是用里面的hiredis; 你也可以自己做一个:http://www.cnblogs.com/sixbeauty/p/3954199.html

    redis配置文件redis.conf

    redis配置文件redis.conf

    Windows版 Redis 5.0.14

    Redis 是一个开源的内存数据结构存储系统,常被用作数据库、缓存和消息代理。在Windows环境下,Redis 的安装和使用与在Linux系统中有所不同。这里我们将详细讨论Windows版Redis 5.0.14的相关知识点。 1. **Redis ...

    redis-windows-Redis7.0.0.zip

    Redis,全称Remote Dictionary Server,是一款开源的、高性能的键值存储系统,广泛应用于缓存、消息队列、数据持久化等多种场景。它以其高效、轻量级的特性,在IT行业中备受青睐,尤其是在互联网领域。在Windows环境...

    redis-5.0.3 redis-5.0.4 redis-5.0.5

    redis-5.0.3 redis-5.0.4 redis-5.0.5

    StackExchange.Redis Redis客户端

    最近需要在C#中使用Redis,在Redis的官网找到了ServiceStack.Redis,最后在测试的时候发现这是个坑,4.0已上已经收费,后面只好找到3系列的最终版本,最后测试发现还是有BUG或者是我不会用。没有办法,最好找到了...

    redis 免安装 redis客户端 redis-desktop-manager-0.8.8.384

    Redis 是一个高性能的键值数据库,它以键值对的形式存储数据,广泛应用于缓存、消息中间件、实时分析等领域。在 Windows 环境下,通常需要通过安装过程来设置 Redis 服务,但这里提供的资源是“redis 免安装”,意味...

    redis在win上的运行脚本redis.bat

    Redis是一款高性能的键值对数据库,常用于缓存、消息队列等场景。在Windows操作系统上运行Redis,通常需要借助一些额外的工具。标题提到的"redis在win上的运行脚本redis.bat"就是一个帮助用户在Windows环境下启动...

    redis客户端连接工具 RedisDesktopManager

    Redis是世界上最受欢迎的内存数据存储系统之一,常用于构建高性能、低延迟的数据缓存和数据库。RedisDesktopManager是一款跨平台的图形用户界面(GUI)工具,使得开发者和管理员能够便捷地管理和操作Redis服务器,...

    Ubuntu安装redis和redis-php扩展

    6. 使用文本编辑器打开 `/etc/redis/redis.conf` 文件,并将 `daemonize no` 修改为 `daemonize yes`,以便 Redis 以后台进程运行: ``` vim /etc/redis/redis.conf ``` 7. 启动 Redis 服务器: ``` /usr/local/bin/...

    Windows 上安装 Redis安装,redis7.2安装到windows上面

    在Windows上安装Redis的过程涉及到多个步骤,包括启用必要的Windows功能、安装WSL2(Windows Subsystem for Linux 2)、设置默认WSL版本以及在Linux环境中安装Redis。以下是对这些步骤的详细说明: 1. **启用...

    Redis-7.0.5-x64 for Windows 64位版 Redis 7.0.5

    Redis是一款高性能的键值对内存数据库,被广泛应用于缓存、数据存储等领域。在这个Windows 64位版本的Redis 7.0.5中,我们能够看到一系列关键组件和配置文件,这使得它能够在Windows环境下运行。以下是关于Redis ...

    redis-windows-7.0.11

    Redis是一种开源的内存数据结构存储系统,它支持多种数据结构,如字符串、哈希、列表、集合、有序集合等。Redis可以用作数据库、缓存和消息中间件。Redis在性能、可扩展性和灵活性方面表现出色,因此被广泛应用于Web...

    windows版Redis1

    Redis是世界上最受欢迎的开源键值存储系统之一,它在Linux操作系统上原生运行,但为了满足Windows用户的需求,也提供了Windows版本。标题“windows版Redis1”表明我们讨论的是一个适用于Windows操作系统的Redis...

    redis win x64位 及 安装卸载RedisServer服务

    Redis是世界上最受欢迎的开源内存数据结构存储系统,它可以用作数据库、缓存和消息代理。在Windows 64位环境下,Redis的安装和卸载过程是很多开发者和系统管理员需要了解的重要技能。以下是对这些知识点的详细说明:...

    redis 6.0 windows 版本

    Redis是一款高性能的键值存储系统,常用于数据库、缓存和消息代理等场景。它支持丰富的数据类型,如字符串、哈希、列表、集合和有序集合。在Windows平台上使用Redis,通常需要通过编译源码或者寻找预编译的二进制...

    windows版本redis6.0.8

    Redis是一款高性能的键值数据库,常用于数据缓存、消息队列等场景。在Windows操作系统上,虽然Redis原生支持Linux环境,但通过社区的努力,也有适用于Windows的版本。本篇将详细介绍“windows版本redis6.0.8”这一...

Global site tag (gtag.js) - Google Analytics