Writing a chat application in Django 4.2 using async StreamingHttpResponse
1–10 of 36 posts
Re: Writing a chat application in Django 4.2 using async StreamingHttpResponse
#2[1] https://stackoverflow.com/questions/10587660/how-does-jetty-...
Re: Writing a chat application in Django 4.2 using async StreamingHttpResponse
#3Re: Writing a chat application in Django 4.2 using async StreamingHttpResponse
#4One thing to note, it's been possible to build these sort of things with Django by using Gevent and Gunicorn for over a decade, and it works well.
In many ways I wish Gevent had been adopted by Python rather than AsyncIO.
Re: Writing a chat application in Django 4.2 using async StreamingHttpResponse
#5Re: Writing a chat application in Django 4.2 using async StreamingHttpResponse
#6Just a heads up that currently Django is not cleaning up open PostgreSQL connections when ran in ASGI mode, leading to too many open connections error: https://code.djangoproject.com/ticket/33497
Re: Writing a chat application in Django 4.2 using async StreamingHttpResponse
#7https://github.com/sysid/sse-starlette makes token streaming so much easier in python
Re: Writing a chat application in Django 4.2 using async StreamingHttpResponse
#8Just a heads up that currently Django is not cleaning up open PostgreSQL connections when ran in ASGI mode, leading to too many open connections error: https://code.djangoproject.com/ticket/33497
that’s kind of a dealbreaker
Re: Writing a chat application in Django 4.2 using async StreamingHttpResponse
#9Just a heads up that currently Django is not cleaning up open PostgreSQL connections when ran in ASGI mode, leading to too many open connections error: https://code.djangoproject.com/ticket/33497
Re: Writing a chat application in Django 4.2 using async StreamingHttpResponse
#10Earlier quoted context omitted.
that’s kind of a dealbreaker
could this be addressed by something like pgbouncer or another connection pooler?
I'm using internal pools + pgbouncer but as I write this out I am beginning to wonder if that is even necessary.