Skip to content

Remove Stream Scopes #346

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

Merged
merged 2 commits into from
Jun 11, 2025
Merged

Remove Stream Scopes #346

merged 2 commits into from
Jun 11, 2025

Conversation

Mr3zee
Copy link
Collaborator

@Mr3zee Mr3zee commented Jun 2, 2025

Strict mode Migration
A series of changes to simplify kRPC protocol

  • Remove fields support
  • Remove stream scopes
  • Simplify lifetime management
  • Cold RPC clients creation
  • Deprecated declarations cleanup
  • Documentation update for previous changes

Subsystem
kRPC

Problem Description
Stream Scopes are deprecated

Solution
Remove stream scopes and adjust client and server capabilities to work with a simpler model.
Server streams are now only cold, client streams are limited by the request's scope.

CAUTION: not all tests pass. This is a partial implementation, some things fail due to lifetime model issues, will be address in a separate PR.

@Mr3zee Mr3zee self-assigned this Jun 2, 2025
@Mr3zee Mr3zee added breaking Contains breaking changes deprecation Contains derecations labels Jun 2, 2025
Comment on lines +21 to +28
internal actual fun CoroutineScope.debugCoroutines() {
DebugProbes.install()
launch {
withContext(Dispatchers.IO) {
delay(10.seconds)
}
DebugProbes.dumpCoroutines()
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated in a later PR in the series

@Mr3zee Mr3zee marked this pull request as ready for review June 10, 2025 14:13
@Mr3zee Mr3zee requested a review from e5l June 10, 2025 14:13
Base automatically changed from remove-fields to enforce-strict-mode June 11, 2025 08:51
@Mr3zee Mr3zee force-pushed the enforce-strict-mode branch from 2486265 to d3ec360 Compare June 11, 2025 08:51
@Mr3zee Mr3zee force-pushed the remove-stream-scopes branch from 126ec96 to d9dc982 Compare June 11, 2025 08:53
@Mr3zee Mr3zee merged commit 5ca2230 into enforce-strict-mode Jun 11, 2025
1 check passed
@Mr3zee Mr3zee deleted the remove-stream-scopes branch June 11, 2025 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Contains breaking changes deprecation Contains derecations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants