Rate limiting algorithms

Rate limiting algorithms

Rate-limiting,Algorithms,Typescript

May 13, 24

In this article, I'll cover the implementation of algorithms I've integrated for the rate limiting library: token bucket, fixed window counter, sliding window log, and sliding window counter.Token Buc

Thumbnails from 1 image

Thumbnails from 1 image

Typescript,FFmpeg

May 30, 23

When I was working on Video Ops, I faced numerous challenges, some of which were completely new to me. One such challenge was figuring out how to handle thumbnails - specifically, how to store and ser

Apollo GraphQL in practice

Apollo GraphQL in practice

GraphQL,React,Express

Nov 10, 22

In my recent projects, I chose Apollo GraphQL libraries for state management and managing my local and remote data. It can be hard to figure out specific ways to solve issues involving these libraries

Docker image size

Docker image size

Docker,Express

Jun 27, 22

Docker images can get very large if you use an official Node image to run on your server. But you don't need most of the features it offers to build a small project. I will show how to reduce the size

Mocking Mongoose

Mocking Mongoose

Jest,Mongoose

Jun 27, 22

One of the challenges I faced during backend testing was how to mock Mongoose models. At first, I tried to mock the whole model class, but this approach became messy fast, especially when using Typesc