CQRS Design Pattern

This article explores the Command Query Responsibility Segregation (CQRS) pattern and how it can be used to design a system. CQRS separates the read and write operations of a data store into two separate components: the command side and the query side. This allows you to optimize the read and write operations independently and improve the performance, scalability, and consistency of the system.

June 7, 2024 · 3 min · 493 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 · 5 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

Strategy, Decorator, Template Method, and Command patterns in Ruby — what problem each solves, idiomatic Ruby implementations, and when to reach for them.

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

Design Patterns in Ruby: A Few Popular Patterns

Singleton, Factory, and Observer patterns in Ruby — what problem each solves, idiomatic Ruby implementations, and how to apply them for maintainable code.

March 29, 2024 · 3 min · 487 words · Bá Tới