Dialogue Roadmap
This document outlines planned features and improvements for future versions of Dialogue. These features are not currently implemented but represent the direction of the library.
1. Overview
Dialogue is designed to be extensible beyond WebSocket-based real-time communication. The following features are planned to expand its capabilities while maintaining the config-first, event-centric philosophy.
2. Planned Features
2.1 SSE Channel
Priority: High
Status: Planned
Server-Sent Events (SSE) for one-way server-to-client communication. Useful for scenarios where clients only need to receive updates without sending data.
Use Cases:
- Live feeds (news, stock prices)
- Progress updates for long-running operations
- Notification streams
Proposed API:
2.2 Web Push Channel
Priority: Medium
Status: Planned
Push notifications via FCM (Firebase Cloud Messaging) and APNS (Apple Push Notification Service) for reaching users when they're not connected.
Use Cases:
- Mobile app notifications
- Browser push notifications
- Offline message delivery
Proposed API:
2.3 Persistence Layer
Priority: High
Status: Planned
Interface for persisting events and room state. Enables message history, offline sync, and audit trails.
Use Cases:
- Chat message history
- Event replay for late joiners
- Audit logging
Proposed API:
2.4 Horizontal Scaling
Priority: High
Status: Planned
Redis adapter for multi-instance deployments. Allows running multiple Dialogue servers behind a load balancer.
Use Cases:
- High availability
- Load distribution
- Geographic distribution
Proposed API:
2.5 Rate Limiting
Priority: Medium
Status: Planned
Per-client event rate limiting to prevent abuse and ensure fair resource usage.
Use Cases:
- Spam prevention
- API quota enforcement
- DoS protection
Proposed API:
2.6 Event Middleware
Priority: Medium
Status: Planned
Middleware pipeline for processing events before they're broadcast. Enables logging, filtering, transformation, and authorization.
Use Cases:
- Content moderation
- Event transformation
- Authorization checks
- Logging and analytics
Proposed API:
2.7 Metrics and Observability
Priority: Low
Status: Planned
Export connection and event metrics for monitoring and alerting.
Use Cases:
- Performance monitoring
- Capacity planning
- Debugging
Proposed API:
3. Implementation Timeline
4. Breaking Changes Policy
- Major versions (2.0, 3.0) may include breaking changes
- Minor versions (1.1, 1.2) will maintain backward compatibility
- Deprecations will be announced one minor version before removal
- Migration guides will be provided for breaking changes
5. Contributing
We welcome contributions for these planned features. Before starting work:
- Open an issue to discuss the implementation approach
- Review existing code patterns and conventions
- Write tests for new functionality
- Update documentation This roadmap reflects current plans and is subject to change based on community feedback and priorities. Contributions and feedback are welcome.