What's a design pattern?Design patterns are typical solutions to commonly occurring problems in software design. They are like a pre-mate blueprints that you can customize to solve a recurring design problem in your code. You can't just find a pattern and copy it into your ...Mar 19, 2022·4 min read·38
Compare require() vs import() in JavaScriptExplore the features of the methods require() and import() in JavaScript Both require() and import() are used to includes modules. But they have several important features you should be aware of. But before we dwell on that, let's go over each of the...Mar 5, 2022·2 min read·22
Typescript: Type vs InterfaceLet's talk about the difference between Type and Interface in Typescript, In the latest versions of Typescript, the differences between them are minimal, and Type now can be used over interface in almost all cases. Both Interface and Type can be use...Mar 3, 2022·4 min read·33
Bull - Job Manager for NodejsThere are some blogs and documentation on Bull for Node.js. But. I would love to share my experience on how we replaced RabbitMQ with Bull. My friend is working for Heath and fitness app. Backend is written in Node.js. They were using RabbitMQ for jo...Feb 27, 2022·3 min read·67
Redis vs Kafka vs RabbitMQWhen using asynchronous communication for Microservices, It is common to use a message broker. A broker ensures communication between different microservices is reliable and stable, that the messages are managed and monitored within the system and th...Feb 24, 2022·4 min read·154
Closure trong JavascriptClosure là hàm có khả năng nhớ và truy cập lexical scope của nó ngay cả khi hàm đó được thực thi bên ngoài lexical scope của nó. Xem vài ví dụ minh hoạ: Đoạn code nhìn thương tự như nested scope. Hàm bar() truy cập đến biến a trong phạm vi bao ngoà...Sep 14, 2021·4 min read·25
Các mô hình lập trình (Programing Paradigms)Paradigm có thể coi là phương pháp để giải quyết một số vấn đề hoặc một số nhiệm vụ nào đó. Programing Paradigm là một cách tiếp cận để giải quyết vấn đề bằng cách sử dụng một số ngôn ngữ lập trình hay chúng ta có thể nói là nó là một phương pháp gi...Sep 3, 2021·1 min read·41