Skip to content

Conversation

@spaced4ndy
Copy link
Contributor

No description provided.

@spaced4ndy spaced4ndy marked this pull request as ready for review November 17, 2025 09:45
TBC separate type for storing only necessary events:

```haskell
data AEventDB where
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

even if we want to persist some commands, no need to define type - it can be just a Bool predicate.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is just to consider if we want to do less encodings

Save response on command before notifying chat (event received by chat via subQ).

```sql
ALTER TABLE commands ADD COLUMN response BLOB;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ALTER TABLE commands ADD COLUMN response BLOB;
ALTER TABLE commands ADD COLUMN event BLOB;

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and most likely we need one more field for status? or how it's tracked

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there doesn't seem much to track, once event is acknowledged command is deleted. so it's no event -> command has event saved -> command deleted

@spaced4ndy spaced4ndy merged commit 1101588 into master Nov 18, 2025
8 of 11 checks passed
@spaced4ndy spaced4ndy deleted the f/async-commands-acks-rfc branch November 18, 2025 07:26
@github-actions github-actions bot locked and limited conversation to collaborators Nov 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants