ZendEventManagerZendSerializerZendCacheZendStdlibErrorHandler
ZendEventManagerSimple subject/observer patternsAspect-Oriented designsEvent-driven architectures
ZendEventManagerSimple subject/observer patternsAspect-Oriented designsEvent-driven architecturesIt does not mean it is as...
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 interfaceTh...
ZendSerializerAdapters  serialize() / unserialize() (default)  igbinary_serialize() / igbinary_unserialize()  JSON  Action...
ZendCacheZF1 Inflexible frontend / backend structure Only permit strings      Requires serialization on frontend level Dif...
ZendCacheZF2 Storage Adapters      Wrappers for real storage resources Storage Plugins      Objects to add missing functio...
ZendCacheStorage Adapter  get / has / set / add / replace / touch / meta /    counting  Multiple interface  „Check And Set...
ZendCacheStorage Capabilities  Describes how a storage adapter works    Static TTL    max. TTL / max. key length    Use re...
ZendCacheStorage Plugins  Event based  Influence adapters control flow  Reusable
ZendCacheCache Patterns  Predifined patterns to solve known performance    bottlenecks  Should be used only in the specifi...
ZendCacheAvailable Cache Patterns:  Output Cache    Caching a part the the output  Capture Cache    Buffer a complete page...
ZendCacheWhat next  Add missing adapters    Xcache / SQLite / DBA / MongoDB …  Add missing plugins    MasterFile    Plugin...
ZendStdlibErrorHandlererror suppression operator issues  Error will be triggered anymore  Not save to catch error message ...
Questions ?
Upcoming SlideShare
Loading in...5
×

Zend\EventManager, Zend\Serializer and Zend\Cache

1,798

Published on

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

Published in: Technology
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,798
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
20
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

Zend\EventManager, Zend\Serializer and Zend\Cache

  1. 1. ZendEventManagerZendSerializerZendCacheZendStdlibErrorHandler
  2. 2. ZendEventManagerSimple subject/observer patternsAspect-Oriented designsEvent-driven architectures
  3. 3. ZendEventManagerSimple subject/observer patternsAspect-Oriented designsEvent-driven architecturesIt does not mean it is asynchron
  4. 4. ZendEventManagerAttach (aggregate) listeners Event name(s) Callback Priority
  5. 5. ZendEventManagerTrigger events Event name Target Arguments / Parameters (optional) Until callback (optional)
  6. 6. ZendEventManager Target EventManagerListener 1 Listener 2 Listener N
  7. 7. ZendSerializergenerate storable representation of PHP types PHP type → string string → PHP type
  8. 8. ZendSerializergenerate storable representation of PHP types PHP type → string string → PHP typeAdapter based interfaceThrows Exceptions on error
  9. 9. ZendSerializerAdapters serialize() / unserialize() (default) igbinary_serialize() / igbinary_unserialize() JSON Action Message Format AMF0 / AMF3 XML using WDDX Pythons pickle module Native PHP code
  10. 10. 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
  11. 11. 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
  12. 12. 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
  13. 13. 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
  14. 14. ZendCacheStorage Plugins Event based Influence adapters control flow Reusable
  15. 15. ZendCacheCache Patterns Predifined patterns to solve known performance bottlenecks Should be used only in the specific situations they are designed to address
  16. 16. 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
  17. 17. ZendCacheWhat next Add missing adapters Xcache / SQLite / DBA / MongoDB … Add missing plugins MasterFile Plugins to transform cache keys & values Add missing patterns PageCache
  18. 18. 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
  19. 19. Questions ?
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×