锤子和钉子
give a child a hammer, everything becomes a nail.
高性能数据库设计
字段冗余 Sharding 水平切分:分库,分表 根据一个标志字段如user id 问题:如何路由? 集群(Cluster),负载均衡(找到集群中的DB) 读写DB分离 Master DB(写),Slave DB(读),一般读写比例是10:1
session 实现
我们知道session 实现有好几种机制,比如cookie, url-rewriting, etc. When cookie is disabled on client side, most of time we can refer to use response.encodeURL o...
数据库表设计
Q: 如何在开发后期修改表结构对现有程序影响最小 表设计是预留一个无任何业务意义的字段,比如userFiled1,userField2,….方便以后与具体业务字段映射 设计一个特殊的字段存放XML文件,XML文件中存放自定义的结构,方便系统扩充。存取是需要解析XML字符串 通过象Hi...
java 常见排序算法
摘自http://deng5566.iteye.com/blog/678817,仅供自学。 排序算法复习(Java实现)(一): 插入,冒泡,选择,Shell,快速排序 为了便于管理,先引入个基础类: 12345678910111213141516package algori...
portlet lifecycle
processAction processEvent render serveResource
CMMI
CMMI Maturity Levels: Level-1: Chaotic, individual heroics Level-2: Managed processes are planned, documented, monitored, and controlled at t...
JSR168 Portlet related
portlet request divide into action request and render request Render parameters allow the portlet to store its navigational state. Render param...
API 层事务策略
API Layer 事务策略的命名基于这样一个事实:所有事务逻辑包含在逻辑应用程序架构的 API 层。这个层是一个逻辑层 — 有时也被称为应用程序的域层(domain layer)或 facade 层,它以公共方法或接口的形式向客户机(或表示层)公开功能。之所以说是逻辑 层,是因为可以从本地访...
JSF Lifecycle
The life cycle handles both kinds of requests: initial requests and postbacks. When a user makes an initial request for a page, he or she is requ...