Skip to content

feat(client): Abstract client-side data transmission for async and batch optimization #455

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xiaguan
Copy link
Collaborator

@xiaguan xiaguan commented Jun 6, 2025

Overview

This PR introduces a comprehensive abstraction layer for client-side data transmission, laying the foundation for future asynchronous interfaces and batch optimizations.

Technical Details

Architecture Changes

// Before: Direct transfer engine calls
engine_.submitTransfer(batch_id, requests);

// After: Abstracted through TransferSubmitter
auto future = transfer_submitter_->submit(handles, slices, op_code);
ErrorCode result = future->get();

Future Roadmap

This abstraction enables several planned optimizations:

  1. Thread Pool Integration: Ready for introducing thread pools for parallel processing
  2. Async Memcpy: Foundation for making memory copy operations asynchronous
  3. Advanced Batching: Enhanced batch processing
  4. Performance Monitoring: Built-in hooks for transfer performance metrics

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