Navneet Pandey

Load Balancing

Load balancing is a technique used to distribute workloads across multiple servers to improve performance by optimizing the resource utilization. Strategies Round Robin It done sequentially there is no logic to this, each request is assigned to the next available server in a circular order. This strategy distributes the load

Managing multiple Go programs with main functions in a single folder

When you have multiple Go files in the same folder, each containing a main function, you'll encounter a problem when trying to build or run your program. Go treats all files in the same folder as part of the same package, and having multiple main functions in a

DB Locking

Lock Granularity: It can be on rows, columns and table, also B+ tree page can be locked. Read Lock (Shared Lock) Locks the data for read for the current session Other sessions can not update the locked data, but Other sessions can read the locked data Write Lock (Exclusive Lock)

caching..

write through cache: When data is written to the cache and the DB at the same time. write around cache: When the data is written into DB and when the user requests the data, it is a cache miss and then the data is loaded to cache storage. write back

Marshalling and Unmarshalling

Marshalling is transforming the object into a byte stream for storage or transmission, in ruby when we push a object to redis for Sidekiq to fetch and process we use marshalling. 2.7.2 :004 > marshaled = Marshal.dump('this is an object') => "\x04\bI\"

Navneet Pandey © 2026