dolamroth / starlette-web

Asynchronous web framework, based on Starlette and inspired by Django
MIT License
3 stars 1 forks source link

Document possible backpressure in Channels #77

Closed dolamroth closed 7 months ago

dolamroth commented 7 months ago

If a channel is looped to itself and it publishes more, that listens, there may be a backpressure problem. https://vorpus.org/blog/some-thoughts-on-asynchronous-api-design-in-a-post-asyncawait-world/#bug-1-backpressure

This is somewhat unique to InMemoryChannelLayer, cause other channel layers rely on outer brokers, which implement their own backpressure protection.