You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Context
Currently, placeholders in ProgressiveJsonStreamer are resolved sequentially, which means any slow DB/API call blocks the stream. This works fine for small payloads but limits scalability and responsiveness in larger real-time APIs or dashboards.
💡 Proposal: Concurrency with amphp/parallel
We're considering supporting concurrent resolution of placeholder values using:
✅ amphp/parallel to run blocking placeholder resolvers in parallel workers
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Context
Currently, placeholders in
ProgressiveJsonStreamer
are resolved sequentially, which means any slow DB/API call blocks the stream. This works fine for small payloads but limits scalability and responsiveness in larger real-time APIs or dashboards.💡 Proposal: Concurrency with
amphp/parallel
We're considering supporting concurrent resolution of placeholder values using:
amphp/parallel
to run blocking placeholder resolvers in parallel workers🔍 Goals
header
,meta
) on slow sections likecomments
oranalytics
📦 Example API
✅ Why this matters
🗣️ Feedback
Would you use this?
Would you want control over concurrency (e.g. max workers, timeout)?
Should this be the default or opt-in?
Beta Was this translation helpful? Give feedback.
All reactions