Presentation is loading. Please wait.

Presentation is loading. Please wait.

Zend\EventManager Zend\Serializer Zend\Cache Zend\Stdlib\ErrorHandler.

Similar presentations


Presentation on theme: "Zend\EventManager Zend\Serializer Zend\Cache Zend\Stdlib\ErrorHandler."— Presentation transcript:

1 Zend\EventManager Zend\Serializer Zend\Cache Zend\Stdlib\ErrorHandler

2 Zend\EventManager Simple subject/observer patterns
Aspect-Oriented designs Event-driven architectures

3 Zend\EventManager Simple subject/observer patterns
Aspect-Oriented designs Event-driven architectures It does not mean it is asynchron

4 Zend\EventManager Attach (aggregate) listeners Event name(s) Callback
Priority

5 Zend\EventManager Trigger events Event name Target
Arguments / Parameters (optional) Until callback (optional)

6 Zend\EventManager Target EventManager Listener 1 Listener 2 Listener N

7 Zend\Serializer generate storable representation of PHP types
PHP type → string string → PHP type

8 Zend\Serializer generate storable representation of PHP types
PHP type → string string → PHP type Adapter based interface Throws Exceptions on error

9 Zend\Serializer Adapters serialize() / unserialize() (default)
igbinary_serialize() / igbinary_unserialize() JSON Action Message Format AMF0 / AMF3 XML using WDDX Python's pickle module Native PHP code

10 Zend\Cache ZF1 Inflexible frontend / backend structure
Only permit strings Requires serialization on frontend level Different frontends are not usable together Tons of uncontrolled options Missing procedures for optimations

11 Zend\Cache ZF2 Storage Adapters Wrappers for real storage resources
Storage Plugins Objects to add missing functionality or to influence behavior of a storage adapter Cache Patterns Predifined patterns to solve known performance bottlenecks

12 Zend\Cache Storage Adapter
get / has / set / add / replace / touch / meta / counting Multiple interface „Check And Set“ feature Find / Clear Support for namespaces Method for optimizing Capabilities Capacity

13 Zend\Cache Storage Capabilities Describes how a storage adapter works
Static TTL max. TTL / max. key length Use request time Describes which features it supports Supported datatypes / metadata Expired read Iterable tagging

14 Zend\Cache Storage Plugins Event based Influence adapters control flow
Reusable

15 Zend\Cache Cache Patterns
Predifined patterns to solve known performance bottlenecks Should be used only in the specific situations they are designed to address

16 Zend\Cache Available Cache Patterns: Output Cache
Caching a part the the output Capture Cache Buffer a complete page and write it as regular file for further requests Callback / Object / Class Cache Caching function / method calls

17 Zend\Cache What next Add missing adapters
Xcache / SQLite / DBA / MongoDB … Add missing plugins MasterFile Plugins to transform cache keys & values Add missing patterns PageCache

18 Zend\Stdlib\ErrorHandler
error suppression operator issues Error will be triggered anymore Not save to catch error message with error_get_last() Not possible to catch more than one error Doesn't play well together with PHPUnit Possibly disabled

19 Questions ?


Download ppt "Zend\EventManager Zend\Serializer Zend\Cache Zend\Stdlib\ErrorHandler."

Similar presentations


Ads by Google