CQRS Implementation #1

Merged
Rene Nochebuena merged 4 commits from feature/cqrs-implementation into develop 2025-04-13 09:35:48 -06:00

4 Commits

Author SHA1 Message Date
672ab94042
Update README with enhanced documentation and examples
All checks were successful
Go CI/CD / go-ci (push) Successful in 19m7s
Go CI/CD / go-ci (pull_request) Successful in 19m9s
Revamp README to include detailed usage examples, installation instructions, scientific benchmarks, and core CQRS/Event-Sourcing patterns. Improve explanation of StoneCQRS features and benefits, targeting clearer communication and user engagement.
2025-04-13 09:14:03 -06:00
0c1694c947
Add test for DispatchEvent with error handling
All checks were successful
Go CI/CD / go-ci (push) Successful in 19m8s
This commit introduces a new test, Test_DispatchEventWithError, to verify error handling when dispatching events. It ensures that the dispatcher properly returns an error when an event handler triggers one.
2025-04-13 01:33:25 -06:00
5bea19ecf1
Add error handling test cases for dispatcher
Some checks failed
Go CI/CD / go-ci (push) Has been cancelled
Introduce error-producing handlers to test command, query, and event dispatch processes. Ensure proper error propagation when handlers encounter failures. Validate that expected errors are correctly returned in all scenarios.
2025-04-13 01:19:06 -06:00
3d2e5ec027
Add Dispatcher implementation for CQRS pattern
Some checks failed
Go CI/CD / go-ci (push) Has been cancelled
Introduced a Dispatcher to manage command, query, and event handlers in a thread-safe manner utilizing read-write mutexes. This includes handler registration and dispatching logic, error handling for unregistered handlers, and support for concurrent operations. Added comprehensive tests for handler registration, dispatching, and error scenarios.
2025-04-13 00:59:18 -06:00