---
title: "空间换时间"
author: "bobo1122"
date: "2014-07-08T16:50:30Z"
tags: []
categories: ["企业架构"]
slug: "untitled"
draft: false
lastmod: "2014-07-08T16:50:30Z"
id: 2089631
url: "https://bobo1122.iteye.com/blog/2089631"
---

空间换时间：
    当pc和服务器的配置越来越高，对程序员来说更多时候需要考虑空间换时间：

    1、页面端缓存（nginx 配置cache等，客户端可以减少流量，etag等）
    2、应用端缓存（图片等）
    3、内存数据库
    4、cache，buffer等的使用

cache现在拥有的redis基本能满足访问的需求，出现瓶颈不会是在redis读写上，而且io、网络等（推荐tedis）。
程序员写程序时候需要知道哪里使用buffer，小东西，但有时候会有大帮助。

待续。。。