API and JWT in Ruby on Rails

In this tutorial, we explore the implementation of an API with JWT authentication in Ruby on Rails. We cover the setup of the Rails application, the creation of API endpoints, and the integration of JWT for secure user authentication.

April 27, 2024 · 9 min · 1908 words · Bá Tới

Understanding I/O-Bound and CPU-Bound Tasks in Backend Development

In backend development, tasks can be classified as I/O-bound or CPU-bound based on their resource requirements and execution characteristics. Let’s explore the differences between these two types of tasks and how to optimize their performance in a backend application.

April 25, 2024 · 4 min · 737 words · Bá Tới

Design Patterns in Ruby: Prototype, Abstract Factory, Bridge, and Facade Patterns

In this article, we explore more design patterns in Ruby, including the Prototype, Abstract Factory, Bridge, and Facade patterns, and discuss how they can be applied to create elegant, maintainable code.

April 18, 2024 · 4 min · 852 words · Bá Tới

Design Patterns in Ruby: Visitor, Memento, Mediator, Flyweight, and Builder Patterns

In this article, we explore more design patterns in Ruby, including the Visitor, Memento, Mediator, Flyweight, and Builder patterns, and discuss how they can be applied to create elegant, maintainable code.

April 18, 2024 · 4 min · 782 words · Bá Tới

Design Patterns in Ruby: Proxy, Composite, State, Chain of Responsibility, and Iterator Patterns

In this article, we explore more design patterns in Ruby, including the Proxy, Composite, State, Chain of Responsibility, and Iterator patterns, and discuss how they can be applied to create elegant, maintainable code.

April 18, 2024 · 5 min · 874 words · Bá Tới

Design Patterns in Ruby: Strategy, Decorator, Template Method, and Command Patterns

Design patterns are reusable solutions to common problems in software design. In this article, we explore some of the most popular design patterns in Ruby, including the Strategy, Decorator, Template Method, and Command patterns, and discuss how they can be applied to create elegant, maintainable code.

April 18, 2024 · 4 min · 790 words · Bá Tới

Speed Up Your Web Application with a Content Delivery Network (CDN)

Learn how to speed up your web application with a Content Delivery Network (CDN). Find out what a CDN is, how it works, and the benefits of using a CDN for your website. Discover best practices for optimizing web performance with a CDN and improve the user experience of your web application.

April 10, 2024 · 6 min · 1088 words · Bá Tới

Optimziting web performance with SplitChunks in Webpack

Learn how to optimize web performance by using SplitChunks in Webpack to bundle and split JavaScript code efficiently. Discover best practices for configuring SplitChunks to improve page load times and reduce network latency.

April 6, 2024 · 3 min · 637 words · Bá Tới

Exploring Sharding in PostgreSQL

Sharding is a database partitioning technique that involves splitting a large database into smaller, more manageable parts called shards. In this guide, we’ll introduce the concept of sharding, explore different sharding strategies, and provide step-by-step instructions for implementing vertical, horizontal, and hybrid sharding in PostgreSQL.

March 31, 2024 · 13 min · 2738 words · Bá Tới

Using Index Include in PostgreSQL

Learn how to use the Index Include feature in PostgreSQL to create covering indexes that include additional columns in the index structure for improved query performance.

March 31, 2024 · 3 min · 601 words · Bá Tới