Skip to content

✨ feat: add interceptor for paid commands, which should withdraw resources to be handled #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Feb 25, 2025

Conversation

MateuszNaKodach
Copy link
Owner

@MateuszNaKodach MateuszNaKodach commented Feb 24, 2025

  • resolve RecruitCreature as paid command

Justification:
This solution is a tradeoff: we couple slices on the interceptor level (can be treated as adapter, like REST API) within the same UnitOfWork / transaction, but we avoid custom orchestration logic with Saga pattern.

@MateuszNaKodach MateuszNaKodach changed the title ✨ feat: add interceptor for paid commands which should withdraw resources to be handled ✨ feat: add interceptor for paid commands, which should withdraw resources to be handled Feb 25, 2025
@MateuszNaKodach MateuszNaKodach merged commit 3a21bc8 into master Feb 25, 2025
1 check passed
@MateuszNaKodach MateuszNaKodach deleted the feat/corssed/spendresources branch February 25, 2025 00:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant