sdk-java icon indicating copy to clipboard operation
sdk-java copied to clipboard

🧵 Performance & Threading model

Open Spikhalskiy opened this issue 4 years ago • 0 comments

Description

Improve threading model in different areas of JavaSDK

Core Objectives

With the absence of coroutines, we create and use short-living separate Java threads for a lot of things. This is wasteful and can be reworked to pooling, event loops, work-stealing, or any other solution that will minimize threads churning and also will allow management and constraining of resources used by a single workflow.

Workflow threads

  • [ ] #294
  • [ ] #214
  • [x] Add workflowId to workflow thread name
  • [ ] #1120

Performance

  • [x] #760
  • [x] #998
  • [ ] #1456
  • [ ] #343
  • [ ] #1413
  • [ ] #878
  • [ ] Consider implementing a streaming interface on the server and SDKs instead of a long poll
  • [ ] #1707

Related user requests / reports

  • [ ] #1211

Spikhalskiy avatar Sep 28 '21 15:09 Spikhalskiy