Skip to content
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

feat: add the concept of ephemeral events #15

Merged
merged 13 commits into from
Sep 21, 2024
Merged

feat: add the concept of ephemeral events #15

merged 13 commits into from
Sep 21, 2024

Conversation

cablehead
Copy link
Owner

@cablehead cablehead commented Sep 21, 2024

This PR also:

  • adds plumbing for time based TTL and temporary events, but they are still TBD
  • chore: bump bon 2.2 to 2.3 to pick up positional arguments
  • uses bon to add a builder pattern for store::Frame 🙏 @Veetaha
$ .append goo
───────┬───────────────────────────
 id     03ci8ao21itcxkc5w0spemq7r
 topic  goo
 hash  
 meta  
 ttl    forever
───────┴───────────────────────────
$ .append goo2 --ttl ephemeral
───────┬───────────────────────────
 id     03ci8ap5mp2hw8e3ix194saqe
 topic  goo2
 hash  
 meta  
 ttl    ephemeral
───────┴───────────────────────────
$ .cat
#─┬────────────id─────────────┬──topic───┬─hash─┬───────meta───────┬───ttl───
 0  03ci8ajzfe36dlw2tui7v1o9x  xs.start        {record 1 field} 
 1  03ci8ao21itcxkc5w0spemq7r  goo                               forever
───┴───────────────────────────┴──────────┴──────┴──────────────────┴─────────
$ .cat -f | ept
───────┬───────────────────────────
 id     03ci8ajzfe36dlw2tui7v1o9x
 topic  xs.start
 hash  
        ──────┬──────────────
 meta    addr  ./store/sock
        ──────┴──────────────
 ttl   
───────┴───────────────────────────
───────┬───────────────────────────
 id     03ci8an2kwgi7vds8hw1kla85
 topic  xs.threshold
 hash  
 meta  
 ttl   
───────┴───────────────────────────
───────┬───────────────────────────
 id     03ci8ao21itcxkc5w0spemq7r
 topic  goo
 hash  
 meta  
 ttl    forever
───────┴───────────────────────────
───────┬───────────────────────────
 id     03ci8ap5mp2hw8e3ix194saqe
 topic  goo2
 hash  
 meta  
 ttl    ephemeral
───────┴───────────────────────────

@cablehead cablehead marked this pull request as ready for review September 21, 2024 04:36
@cablehead cablehead merged commit 1c33f6b into main Sep 21, 2024
2 checks passed
@cablehead cablehead deleted the feat-ephemeral branch September 21, 2024 15:13
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