Command Query Responsibility Segregation (CQRS) is an architectural pattern that separates reading and writing into two different models. Commands update data, and Queries read data.
A social network details profile updates (Commands) to a Normalized SQL DB, while the Feed (Query) is read from a Denormalized NoSQL store for speed.
class CQRS:\n def __init__(self):\n pass\n\n def execute(self):\n print('Executing CQRS')