Skip to content

Feature: separate out command queuing to a command queuer driving port#19

Merged
lindyhopchris merged 2 commits intonextfrom
command-queuer
Jan 12, 2025
Merged

Feature: separate out command queuing to a command queuer driving port#19
lindyhopchris merged 2 commits intonextfrom
command-queuer

Conversation

@lindyhopchris
Copy link
Copy Markdown
Member

Previously, the command bus exposed a queue() method for asynchronously dispatching commands.

This PR separates that out to a command queuer driving port. This is better because it means the application layer only exposes command queuing to the presentation and delivery layer if it supports it.

Additionally, it makes more sense for the queuing of internal commands. Now for internal work, the application layer just pushes commands directly to the queue driven port. An internal command bus can then be used for dispatching those queued commands - but importantly, this command bus can actually be defined as a driven port, which makes more sense as queuing commands requires infrastructure and therefore should only exist as a driven port if it is not exposed to the outside world.

@lindyhopchris lindyhopchris self-assigned this Dec 24, 2024
@lindyhopchris lindyhopchris merged commit ac0fb37 into next Jan 12, 2025
@lindyhopchris lindyhopchris deleted the command-queuer branch January 12, 2025 18:33
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