3 ms·
This isn't just useful for serverless. Any process-per-request based architecture can also benefit (PHP, Ruby, etc).
by spullara 4y ago
This isn't just useful for serverless. Any process-per-request based architecture can also benefit (PHP, Ruby, etc).
- spapas82 4y agoA simple optimization in these cases is to keep the connection open (see https://docs.djangoproject.com/en/4.1/ref/databases/#persistent-connections https://docs.djangoproject.com/en/4.1/ref/databases/#persist...)
- chippiewill 4y agoPHP isn't generally process per request these days (for precisely this reason). Each request is "fresh", but extensions can persist state between requests, including connections to databases etc.