In 2001, C10k problem are raised, there are already many ways to solve this problem. In this post, I will implement related problem to create a WebSocket server by Go. A WebSocket server is a TCP application listening on any…
LRU and LFU Cache Algorithms
Least Recently Used (LRU) Discards the least recently used items first. This algorithm requires keeping track of what was used when, which is expensive if one wants to make sure the algorithm always discards the least recently used item. General…
Disjoint-set Forests Go Implementation
Disjoint-set Disjoint-set data structure also called a union–find data structure or merge–find set. It maintains a collection of disjoint dynamic sets. We identify each set by a , which is some member of the set. In some applications, it doesn't…
Continuous Integration with Jenkins Cluster
Introduction Jenkins is an open source continuous integration tool written in Java. The project was forked from Hudson after a dispute with Oracle. Jenkins provides continuous integration services for software development. It is a server-based system running in a servlet…