Skip to content

Instantly share code, notes, and snippets.

View AndrewCarterUK's full-sized avatar

Andrew Carter AndrewCarterUK

View GitHub Profile
@AndrewCarterUK
AndrewCarterUK / psr-6-testing-example.php
Created September 30, 2015 13:12
PSR-6 Pool::resolveItem() Testing Example
<?php
class MyClass
{
private $pool;
public function __construct(CacheItemPoolInterface $pool) { $this->pool = $pool; }
public function getDataA($param)
{
return $this->pool->resolveItem(
@AndrewCarterUK
AndrewCarterUK / breaking-boundaries-with-fastcgi.md
Last active September 4, 2015 10:51
Talk Proposal: Breaking Boundaries with FastCGI

Breaking Boundaries with FastCGI

Efficient and performant applications are fantastic; they keep server load, costs and response times low. We can make our web applications more efficient by removing the repetitive bootstrapping process from the request-response cycle.

"How?" I hear you ask!

By using FastCGI we can keep our application alive between requests and vastly improve their performance. The best news is that if you're using a Request-Response framework (such as Symfony) you can probably do this to your application by adding one line to your composer dependencies file.

Let us not get too excited, however! When using PHP in this way we have to be very careful about the design and configuration of our application! This talk will explain how to use FastCGI with our applications safely, providing an overview of the process and highlighting the danger areas that we must be cautious of.

Keybase proof

I hereby claim:

  • I am AndrewCarterUK on github.
  • I am andrewcarteruk (https://keybase.io/andrewcarteruk) on keybase.
  • I have a public key whose fingerprint is 816F E758 8C26 645F DEC6 AEC3 7A29 1B28 6F00 60B0

To claim this, I am signing this object: