Monthly Archives: August 2017

NoSQL Learning Notes

What A NoSQL (originally referring to “non SQL” or “non relational”)[1] database provides a mechanism for storage and retrieval of data that is modeled in means other than the tabular relations used in relational databases. (Not only SQL, support SQL query) Why Simplicity of design, simpler “horizontal” scaling to clusters of machines … Continue reading

Posted in CS Research&Application, Uncategorized | Tagged , , | Leave a comment

Consistent Hashing Learning Notes

Why? In most traditional hash tables, a change in the number of array slots causes nearly all keys to be remapped because the mapping between the keys and the slots is defined by a modular operation. (less keys to update … Continue reading

Posted in CS Research&Application, Uncategorized | Tagged , , | Leave a comment

Java Multi Thread Basics 2

1. Singleton Design Pattern check null after get lock to avoid instantiate multiple times (other thread passed first null check and are waiting for the lock) 2. Producer and Consumer problem is not like Read and Write, it doesn’t allow … Continue reading

Posted in CS Research&Application, Uncategorized | Tagged , , | Leave a comment

Programming Retrospection (Aug 4)

1. If the problem requirement is very complex, try to convert to simpler one. (In industry, you always get business requirement which is not efficient in technology, you should convert to a tech efficient algorithm/requirement) 标准复杂,就转换标准(蓄水池问题) 在工业界拿到的商业需求可能不是技术上的最优解,这种情况下就要优化需求(把商业需求转换成技术需求)。 2. Tow pointers … Continue reading

Posted in CS Research&Application, Uncategorized | Tagged , , | Leave a comment