Skip to content

feat(dht): add beta p2p distributed cache network#451

Merged
deedy5 merged 1 commit intomainfrom
dev
Apr 17, 2026
Merged

feat(dht): add beta p2p distributed cache network#451
deedy5 merged 1 commit intomainfrom
dev

Conversation

@deedy5
Copy link
Copy Markdown
Owner

@deedy5 deedy5 commented Apr 17, 2026

Implement peer-to-peer Kademlia DHT network for shared search result caching. This feature automatically reduces rate limits and improves query latency by transparently sharing cached results between all running DDGS instances.

Changes include:

  • Full libp2p DHT client implementation with Kademlia routing
  • Persistent local SQLite cache with TTL expiration and bloom filters
  • Automatic DHT service integration with existing API server
  • Transparent cache integration for all existing search methods
  • Complete REST API endpoints for DHT operations and monitoring
  • New optional dht installation extra for dependencies
  • Updated documentation, CI workflow and test suite
  • Changed default API server port from 8000 to 4479

All existing code continues to work unchanged. DHT enables automatically when optional dependencies are installed, no user code changes required.

Implement peer-to-peer Kademlia DHT network for shared search result caching.
This feature automatically reduces rate limits and improves query latency
by transparently sharing cached results between all running DDGS instances.

Changes include:
- Full libp2p DHT client implementation with Kademlia routing
- Persistent local SQLite cache with TTL expiration and bloom filters
- Automatic DHT service integration with existing API server
- Transparent cache integration for all existing search methods
- Complete REST API endpoints for DHT operations and monitoring
- New optional `dht` installation extra for dependencies
- Updated documentation, CI workflow and test suite
- Changed default API server port from 8000 to 4479

All existing code continues to work unchanged. DHT enables automatically
when optional dependencies are installed, no user code changes required.
@deedy5 deedy5 merged commit 9040192 into main Apr 17, 2026
12 checks passed
@deedy5 deedy5 deleted the dev branch April 17, 2026 06:44
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