ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
php://memory and
streams for scaling
Neal Anders - https://joind.in/6514
wuzzat?




          2607:f8b0:4006:801::1012
whoami

Neal Anders
Senior Software Engineer at Infoblox
http://github.com/nanderoo
http://neal-anders.com
@nanderoo
shameless plug
Infoblox is working on some cool stuff...
- DNS, DHCP, IPAM, NCCM
- IPv6 Center of Excellence
- IF-Map / DNSSec
- Hiring (sales, services, support, engineering)
disclaimer
These thoughts and opinions are my own, and
not of my employer, bla bla bla...
whois $USER
Quick poll:
- Designers
- Developers
- Sys-Admins
- Networking
- Management
- Other...?
- Who is hiring? Looking?
overview
What we will cover:
- What are streams?
- Examples: memory / temp.
- Scaling your app
inspiration
say what now?
php://memory
 
...and temp...
 
...what is that?
 
...how can I use it?
 
 
what are streams
-   The flow of data..
-   Going in...
-   Coming out...
-   stdin, stderr, stdout
-   php://memory and temp.
-   Wrappers and php resources
 
what are streams
-   Written to, read from..
-   Seekable or sequential..
-   Give your app room to breath..
-   expect, phar, ssh2
-   Examples:
examples
Write, Read, Seek....
examples
Store in memory..
examples
Store somewhere besides in memory..
examples
Or until that becomes scarce..
scaling your app




            Doesn't that mean....
         We need to use X or Y like
   [hugely successful overnight start-up]?
scaling your app




        Rethink how data flows..
scaling your app




          Apply elastic charm..
scaling your app




        Instrument ...everything!
scaling your app




     What you know, you don't know..
scaling your app




    Be prepared to change a few flat tires..
 
scaling your app




      Learn from your own mistakes..
resources
http://php.net/wrappers.php
http://php.net/function.memory-get-usage.php
http://baconipsum.com/
 
feedback
joind.in - https://joind.in/6514
email - neal.anders@yahoo.com
 
fin




      Thank you.

More Related Content

Tek12: php://memory and streams for scaling