LSM Tree - Introduction
What is LSM Two-Component LSM-Tree Algorithm Performance of LSM Tree
Search for a command to run...
What is LSM Two-Component LSM-Tree Algorithm Performance of LSM Tree
What is hystrix The hytrix settings type CommandConfig struct { Timeout int `json:"timeout"` CommandGroup string `json:"command_group"` MaxConcurrentRequests int `json:"max_concurrent_requests"` Request...
What Reflect can be used for. Reflection can be used to examine type and value info at runtime. How to get the actual type of an interface. package main import ( "fmt" "reflect" ) func typeOf(vals ...interface{}) { for _, v := range val...
What is sync.Map sync map is concurrent safe map data type. Use Cases used to store keys and values in multiple concurrent goroutines. Example valueStore is a sync map used to store values in multiple goroutines. after all goroutines finished store d...
there are three way to declare a slice in golang. define slice // use slice literal var slice []int // use make without cap var slice = make([]int, 10) // len == cap = 10 // use make with cap var slice = make([]int, 0, 10) // len=0. cap = 10 // The a...
What is golang context Context is used to pass request-scope values, and control timeout, deadline and cancel of sub goroutines in a request. Common use cases. Pass value through context. Set timeout or deadline to context Cancel context, and stop r...
go-cache is a in-memory key value store that used to store cache data in our services. How to use it to store/retrieve cache data. import ( "time" "github.com/patrickmn/go-cache" ) var ( // create kvstore with default expiration: 5 mins...
what is in memory cache In memory cache is an way that the application temp store the data to computer main memory, for quickly retrieval. So basically, we will implement an in memory cache that let the client can get and set values by key, and also ...