Hello
I’m Ertan
Concurrency Modern computers provide multiple chips, and we can access multiple chip Golden questions The following questions are important to answer to run programs concurrently Are critical sections entered and exited with high frequency What size would be ideal for the critical section
Pointers Pointer is a variable which contains address of another values stored address. Different values require different sizes of memory location, value is the boolean, but it still takes up a whole byte, that is because smallest representable amount of memory, and the other types takes up space their bit count divided by four; int32 -> 32 bits -> 4 bytes etc. Slices, maps, interfaces, channels, and functions are impelemented using pointers. It’s common to pass channel to some other function, and defines their purpose, hence it’s pointer by default. ...
Introduction Go is a language where concurrency is first class citizen, it can be used to concurrently run applications using the language native constructs with ease, and efficiently. Although Go compiles to native binary, it still has two main components attached to it, a scheduler, and a garbage collector. Garbage collection in Golang, is meant to run frequently with small puases, rather than big but less frequent pauses. Scheduler is the component responsible what enables concurrency constructs to run smoothly, it manages OS thread pool and orchestrates goroutines. ...
Introduction This is not a in-depth guide for Docker but rather understanding enough to get comfortable with it. Docker is a containerization tool that creates an isolated environment for applications to not rely on system level dependencies so its behavior doesn’t change from system to system. It can be considered as defining a pure function rather than a function that relies on global variables or side effects. With the same inputs, it’ll produce the same output, here inputs being the system you define for your application to execute. ...
Introduction Hello, this is both for future documentation for myself and to help others set up an observability integration for a NestJS application. Observability Being able to observe your system gives you confidence, because you’ll be able to explain what happened and why it happened. Not to mention, some regulations require you to have some form of observability in your system. With observability integrated, you give your system a voice, it speaks back to you, telling the story of your users’ journey within the system, rather than acting like a mute “Trust me bro, I know what I’m doing” kind of system. With much less effort, you’ll know what went wrong and why. ...