Thursday, October 24, 2019

Re: Daphne behavior question: Application close timeout and caching

Thanks. I found my answer in the Specification document.

On Tuesday, October 22, 2019 at 9:41:23 PM UTC-6, WD Wang wrote:
https://asgi.readthedocs.io/en/latest/specs/main.html#specification-details here is the spec for ASGI, you can check what the doc says.

On Wed, Oct 23, 2019 at 7:49 AM DeVonte Applewhite <devonte_a...@trimble.com> wrote:
Does anyone have an idea where I can get more information on Daphne behavior?

On Tuesday, October 8, 2019 at 5:47:25 PM UTC-6, DeVonte Applewhite wrote:
Hello,

I am using Daphne to run a Quart app (https://pgjones.gitlab.io/quart/index.html#) and I wanted to use caching to improve performance.

I looked at the settings for Daphne and have a question about the below option:

  --application-close-timeout APPLICATION_CLOSE_TIMEOUT
                        The number of seconds an ASGI application has to exit
                        after client disconnect before it is killed

Does Daphne launch an application upon receiving a request, then kill it after the application gives a response every time?
If this is the case, I assume in memory caching would not work since the process running the app would be killed after every request.

Can someone give more information on the behavior of Daphne regarding the application close timeout?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6149f3a3-c87c-4ab6-a059-3a4b78343a18%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/06fa8f42-07f9-4d99-b20d-6588340524d4%40googlegroups.com.

No comments:

Post a Comment