Skip to content

Conversation

Mr3zee
Copy link
Member

@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
Member 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
Mr3zee added a commit that referenced this pull request Jun 13, 2025
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