系统/服务器优化
来源:互联网 发布:减肥书籍知乎 编辑:程序博客网 时间:2024/06/06 08:57
(Cache,Asynchronous,Concurrent)
前端性能优化
- 网页瘦身,降低带宽消耗。
- 尽量少的使用图片及大体积的东西。
- 合并js、css文件以减少请求加载次数
- 页面静态化
- DNS负载均衡
- CDN,Content Delivery Network,即内容分发网络
后台性能优化
- 数据库部分
- 数据冗余
将数据库的数据冗余处理,以减少大表连接查询 - 数据镜像
- 数据分区
- 数据冗余
- 逻辑
Cache
- page caching
- action caching
- Action caching is dependent on urls.
- fragment caching
- Fragment caching is dependent on the view being rendered.
- 片段缓存(Fragment caching)就是缓存已渲染的HTML片段进Rails.cache,(P: Rails provides a ‘cache’ view helper for this. It’s most basic form takes no arguments besides a block.)
<%= cache "#test{@test.id}-{@test.updated_at}" do %> <div> <b><%= @test.title %></b> </div> ...<% end %>
All cached content are stored in the Rails.cache(except page caching). Page caching are stored as HTML on disk.
Tip:
- 把握缓存粒度,以降低expired,提高命中率为目标
- 数据一致性
0 0
- 系统优化、服务器优化杂谈
- 服务器系统优化
- nginx 服务器系统优化
- 系统/服务器优化
- web系统后端服务器优化
- web系统后端服务器优化
- Apache服务器系统设置与优化
- 调整 Windows 系统以优化服务器性能
- 服务器系统性能瓶颈和优化
- 服务器安装后的系统优化
- Linux系统下WEB服务器的架设与性能优化
- LAMP系统性能调优 MySQL数据库服务器优化
- LAMP系统性能调优 MySQL数据库服务器优化
- Linux Apache服务器系统的设置与优化
- 优化报表系统结构之报表服务器计算
- linux 作为java web服务器参数系统参数优化(调优)
- CentOS系统参数优化-提升MySQL服务器性能
- 服务器优化
- windows注册表详解
- Android 画虚线显示实线的BUG
- TCP详解(3):重传、流量控制、拥塞控制……
- mysql 联表查询(内联、左联、右联、全联)的语法
- 正则表达式学习笔记(一)──转义、替换、匹配
- 系统/服务器优化
- iOS POS之8583报文组装工具
- Android 开发 计时器的实现
- malloc(0)返回什么地址?
- centos 6.5 源码安装apache
- 有的人——理我,是因为我有快乐我好
- 「带 BOM 的 UTF-8」和「无 BOM 的 UTF-8」有什么区别?网页代码一般使用哪个?
- Unix网络编程卷1源代码使用
- simple-framework(MaliSDK框架分析)