computer-science

Mastering Distributed Locks: Redlock Mutexes in Multi-Server Setup

This blog post delves into the advanced implementation of Redlock mutexes in distributed systems, exploring their crucial role in ensuring data consistency and preventing race conditions in multi-server environments.

Read
web-dev

NestJS CODEX: auxiliaries for CRUD using Mongoose with transactions support

Repository provides a robust CRUD service using NestJS and Mongoose, designed to simplify the development of database interactions with built-in transaction support via Async Local Storage.

Read

Machine Learning Intro Demystified

Overview of the basic concepts of machine learning and artificial intelligence.

Read
web-dev

Class method locking mechanisms in multi-server setup | How to manage multiple app replicas (instances)

We’ll learn how to use synchronisation mechanisms such as mutex and lock in order to execute desired class method only once in multi-server setup.

Read
web-dev

ExcelJS: Merge CSV or XLSX files into one

This short post is about to explain how to easily merge two or more CSV or XLSX files with the same structure into one using ExcelJS.

Read
web-dev

NestJS: Process high-load tasks using Queues

I'll teach you how to use Queues to process tasks that require a lot of computing time.

Read
web-dev

NestJS: Webhook transmitter (send event to other urls)

What if a 3rd-service accepts only one webhook URL? In that case we can transmit webhook event to any other endpoint.

Read
web-dev

NestJS: Custom validator for checking relationship with Mongo model

Build custom class-validator decorator in NestJS to ensure that provided ID in any DTO exists in Mongo database.

Read
infrastructure

Cron jobs in multi-server setup (AWS)

The article is about how to manage cron jobs in multi-server setup

Read
infrastructure

Syncing PostgreSQL tables with ElasticSearch using Docker

Let's talk about how to sync data between PostgreSQL and ElasticSearch easily (or not).

Read