Problem/Motivation

When a purge queue is executed the fastly module sends out a HTTP query to fastly in a blocking way. We see in some newrelic logs that this slows down
content creation.

Proposed resolution

Send out the purge queue in a non blocking way. There is a fairly standard module out there: httprl which provides an API really similar to drupal_http_request()
let's leverage that, when its available.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#9 2539916.patch386 bytesmfb
#3 2539622-3.patch1.39 KBmfb
#1 2539622-2.patch867 bytesdawehner

Comments

dawehner’s picture

Status: Active » Needs review
StatusFileSize
new867 bytes

Here is a patch for that.

leon kessler’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Status: Needs review » Needs work

Thanks dawehner.

However, all feature requests should go into the 2.x branch. Could we re-roll the patch there?

mfb’s picture

Status: Needs work » Needs review
StatusFileSize
new1.39 KB

Rerolled the patch and added a mention to the README.txt

fabianx’s picture

Status: Needs review » Reviewed & tested by the community

RTBC, looks great to me!

  • leon.nk committed 1891471 on 7.x-2.x authored by mfb
    Issue #2539916 by dawehner, mfb: Send the purge query out in a non...
leon kessler’s picture

Status: Reviewed & tested by the community » Fixed

Thanks everyone. Added to 7.x-2.x-dev

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

mfb’s picture

Status: Closed (fixed) » Needs work

Re-opening. I must confess I didn't actually test the rerolled patch. It queues up the request but never sends it.

mfb’s picture

Status: Needs work » Needs review
StatusFileSize
new386 bytes
fabianx’s picture

Status: Needs review » Reviewed & tested by the community

  • leon.nk committed eab1565 on 7.x-2.x authored by mfb
    Issue #2539916 by mfb, dawehner: Send the purge query out in a non...
leon kessler’s picture

Status: Reviewed & tested by the community » Fixed

Added to 7.x-2.x

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

dawehner’s picture

Re-opening. I must confess I didn't actually test the rerolled patch. It queues up the request but never sends it.

I must confess that I also didn't really tested the patch and just assumed its working like guzzle, which handles it in the background.