RSSAmplifier

Blog

Mezhenskyi.dev

Recent content on Mezhenskyi.dev

mezhenskyi.devRSS feed ↗4 posts

Latest posts

About

Hey!
I’m Nikita Mezhenskyi, a software engineer from Toronto, Canada. I specialize in system programming, virtualization, databases, networking, cloud computing, distributed systems, and web applications. I mainly write software using Go, C, and C++ but also have experience of working with other languages. Some of my favourite books about software development are Designing Data-Intensive…

Thread-safe queue in C++

This article describes a general-purpose thread-safe queue. It also provides implementation in C++.
What is a queue? Link to heading A regular queue is a fairly straightforward data structure. Its main characteristic is that it uses the “first in, first out” principle (FIFO). That is, the element that gets added first is the first one to be read. Think of it like a pipe: items…

Managing Linux Processes in Go

This article explores basic concepts behind Linux processes and how one can manage them using the Go programming language.
Linux Processes Link to heading As far as Linux is concerned, a process is just a running program. There is a special process called init which is the first process to start during OS startup. It continues running until the system shuts down. Init is the…

Cors Policy & Set-Cookie

Recently I was working on a project that shares session cookies between multiple origins. In the process, I have encountered several problems related to CORS policy and Set-Cookie settings. The journey to resolve these problems gave me a better understanding of the topic. In this post, I would like to share what I have learned and potentially prevent you from the mistakes I made.
What is CORS…