Blog
Mert Özen's blog posts on software development, backend, frontend, and DevOps.
Redis Lists and Sets: Simple Queues, Reliable Queues, Recently Viewed Items and Tags
If a worker that took a job with RPOP crashes, the job is lost; LMOVE moves the job to a processing list in the same atomic step, so it can be recovered after a crash. With real output: the reliable queue and its limits, Redis 8.10's LMOVEM, BLPOP freezing an application for 3 seconds on a shared multiplexer, the last 10 viewed books with LTRIM, book tags in an intset and SINTER, weekly unique visitors with SUNIONCARD, and a 67 ms SMEMBERS on a big set.
A Guide to C# List<T>: Adding, Removing, Capacity, Sorting and Searching
Elements skipped while removing in a loop, the 'Collection was modified' error and removing correctly with RemoveAll. The array inside, Capacity growing 4-8-16-32 and EnsureCapacity; Add, Insert, Remove and equality, the Find family, Sort, BinarySearch and why Sort is not stable.