Skip to content

Implement Tower Services and Layers with Tokio for Asynchronous I/O #4

@hippalus

Description

@hippalus

Implement Tower Services and Layers with Tokio for Asynchronous I/O

Objective

Integrate Tower services and layers into the umay to create modular, reusable, and composable components. Utilize Tokio for asynchronous I/O to handle concurrent network connections efficiently.

Description

Tasks

  • Refactor Proxy Server to Use Tower Abstractions

Key Components

Layers
  • ProtocolDetectionLayer
  • ConditionalTlsLayer
  • LoadBalancingLayer
  • ProtocolProxyLayer
Services
  • Implement Tower Service trait for each layer.
  • Compose services using Tower's ServiceBuilder.
Protocols
  • Support for TCP, TLS, WebSocket, and potential future protocols

Acceptance Criteria

  • Protocol detection, TLS termination, load balancing, and protocol proxying are implemented as separate layers.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions