Zend Platform

527 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
527
On SlideShare
0
From Embeds
0
Number of Embeds
54
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Zend Platform

  1. 1. Zend Platform
  2. 2. Zend Platform <ul><li>We have it </li></ul><ul><li>It's not cheap </li></ul><ul><li>We're using it, but to nowhere near its full potential </li></ul>
  3. 3. What is Zend Platform? <ul><li>It's a piece of software which sits between PHP and the server; a managed environment in which our PHP code runs </li></ul><ul><li>It gives us visibility on what our code is doing in production (event log, profiling)‏ </li></ul><ul><li>And a lot of other cool tools </li></ul>
  4. 4. What are we Using? <ul><li>Event Log </li></ul><ul><li>Accelerator </li></ul><ul><li>The tip of the iceberg </li></ul>
  5. 5. Even Actions: proactive monitoring <ul><li>Post XML to a URL </li></ul><ul><li>Send email – without cluttering up the application code </li></ul><ul><li>Send SNMP trap, which can be caught by Nagios </li></ul>
  6. 6. Session Clustering <ul><li>PHP Sessions can be troublesome in a multi-server environment </li></ul><ul><li>Need for NFS server/database/Session Server </li></ul><ul><li>Works like JBoss session clustering </li></ul><ul><li>Sessions can live in memory </li></ul><ul><li>Simply a case of “switching it on” </li></ul>
  7. 7. Caching <ul><li>Platform can act as a “back-end” for caching </li></ul><ul><li>Zend Framework provides a simple API </li></ul>
  8. 8. Caching - example
  9. 9. Caching - benefits <ul><li>Cache shared between servers </li></ul><ul><li>Cache could be shared between and applications e.g. Content API calls </li></ul><ul><li>No fuss with cache files/directories/permissions/sysadmins </li></ul><ul><li>No need to clean up expired cached objects </li></ul>
  10. 10. Job Queue <ul><li>Ability to “offline” processing and have it done asynchronously </li></ul><ul><li>Asynchronous processes run within Platform, the same as “normal” code </li></ul>
  11. 11. Java Bridge <ul><li>Our page-generation times are relatively slow </li></ul><ul><li>Most of that is SOAP calls to Java services </li></ul><ul><li>Java Bridge allows us to import Java objects and treat them as if they were native PHP objects </li></ul><ul><li>So we could write an e.g. SessionServer client in Java, which talks to SessionServer over RMI. Performance increase could be impressive (requires benchmarking)‏ </li></ul>
  12. 12. Going Forward <ul><li>This is only a few of the features, let’s get thinking about how we can use some of this stuff </li></ul><ul><li>Work out which issues are critical enough to escalate to Nagios </li></ul><ul><li>Try to reduce the number of errors/notices we are creating in production </li></ul>

×