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(pubsub): add initial pubsub implementation #222

Merged
merged 1 commit into from
Feb 15, 2025

Conversation

pancsta
Copy link
Owner

@pancsta pancsta commented Feb 15, 2025

/pkg/pubsub is a trustful decentralized synchronization network for asyncmachine-go. Each peer exposes several state machines, then starts gossiping about them and other ones known to him. Remote state machines are then visible to other peers as /pkg/rpc.LocalWorker. PubSub can be used to match Clients with Workers from /pkg/node.

This is an early version and needs optimizations, as its hard to run load tests ATM. Time to settle discovery for 100 peers is around ~50s.

Features

  • gossip-based discovery
  • gossip-based clock updates
  • gossip checksums via machine time
  • rate limitting
  • no leaders, no elections

@pancsta pancsta merged commit 6a2959b into main Feb 15, 2025
11 checks passed
@pancsta pancsta deleted the feat/add-initial-pubsub-impl branch February 15, 2025 13:19
@pancsta pancsta changed the title feat(pubsub): add initial pubsub impl feat(pubsub): add initial pubsub implementation Feb 15, 2025
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