Zend\EventManager, Zend\Serializer and Zend\Cache
Upcoming SlideShare
Loading in...5
×
 

Zend\EventManager, Zend\Serializer and Zend\Cache

on

  • 1,856 views

A small introduction into:

A small introduction into:
- Zend\EventManager
- Zend\Serializer
- Zend\Cache
- Zend\Stdlib\ErrorHandler

Statistics

Views

Total Views
1,856
Views on SlideShare
1,856
Embed Views
0

Actions

Likes
2
Downloads
17
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Zend\EventManager, Zend\Serializer and Zend\Cache Zend\EventManager, Zend\Serializer and Zend\Cache Presentation Transcript

  • ZendEventManagerZendSerializerZendCacheZendStdlibErrorHandler
  • ZendEventManagerSimple subject/observer patternsAspect-Oriented designsEvent-driven architectures
  • ZendEventManagerSimple subject/observer patternsAspect-Oriented designsEvent-driven architecturesIt does not mean it is asynchron
  • ZendEventManagerAttach (aggregate) listeners Event name(s) Callback Priority
  • ZendEventManagerTrigger events Event name Target Arguments / Parameters (optional) Until callback (optional)
  • ZendEventManager Target EventManagerListener 1 Listener 2 Listener N
  • ZendSerializergenerate storable representation of PHP types PHP type → string string → PHP type
  • ZendSerializergenerate storable representation of PHP types PHP type → string string → PHP typeAdapter based interfaceThrows Exceptions on error
  • ZendSerializerAdapters serialize() / unserialize() (default) igbinary_serialize() / igbinary_unserialize() JSON Action Message Format AMF0 / AMF3 XML using WDDX Pythons pickle module Native PHP code
  • ZendCacheZF1 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
  • ZendCacheZF2 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
  • ZendCacheStorage 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
  • ZendCacheStorage 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
  • ZendCacheStorage Plugins Event based Influence adapters control flow Reusable
  • ZendCacheCache Patterns Predifined patterns to solve known performance bottlenecks Should be used only in the specific situations they are designed to address
  • ZendCacheAvailable 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
  • ZendCacheWhat next Add missing adapters Xcache / SQLite / DBA / MongoDB … Add missing plugins MasterFile Plugins to transform cache keys & values Add missing patterns PageCache
  • ZendStdlibErrorHandlererror 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 Doesnt play well together with PHPUnit Possibly disabled
  • Questions ?