Behavioral patterns
Command
Turns a request into an object you can queue, log and undo.
Article
Command: a request wrapped in an object
The Command pattern through a waiter's terminal in a pierogi place: every action on the ticket is an object with execute and undo, so it can be undone, redone, kept in a history and sent to a queue. Code in five languages.
Challenges
Around the topic
- Command · Design Patterns Revisited · Game Programming Patterns article · web · Robert Nystrom
- Polecenie / Command article · web · Refactoring.Guru
- Command Pattern – Design Patterns (ep 7) video · youtube · Christopher Okhravi
- Command, Repository and Mediator Design Patterns podcast · apple-podcasts · Coding Blocks
- Game Programming Patterns book · openlibrary · Robert Nystrom
- Command article · web · Refactoring.Guru
- Microservices Pattern: Pattern: Command Query Responsibility Segregation (CQRS) article · web · Chris Richardson (microservices.io)