How Zend Used Flex & PHP to Build a Software Flight Recorder

3 downloads 2351 Views 3MB Size Report
Adobe & Zend Webinar. For Zend, Kevin Schroeder ... Job Queue High Concurrency Level ... Considered Adobe Flex and AJAX toolkits (e.g. Dojo). • Winner is…
How Zend Used Flex & PHP to Build a Software Flight Recorder Adobe & Zend Webinar For Zend, Kevin Schroeder http://www.twitter.com/kpschrade

© All rights reserved. Zend Technologies, Inc.

"As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact instant when I realized that a large part of my life from then on was going to spent in finding mistakes in my own programs" - Maurice Wilkes, 1949

© All rights reserved. Zend Technologies, Inc.

Debugging the old way • var_dump($var)

(I still use this occasionally)

• Some obvious problems  What if you forget to remove it?  Are you doing this in a production environment? If you are …  Very limited scope

© All rights reserved. Zend Technologies, Inc.

Debugging the better way – ZS Debugging • You can see what the variable values are at run time and modify them too

• Good for development • Not good for production © All rights reserved. Zend Technologies, Inc.

Monitoring • MUCH better for production systems • You get a lot of really good information to help replay the issue

© All rights reserved. Zend Technologies, Inc.

Events that can be monitored Function Error Database Error Slow Function Execution Slow Query Execution Slow Request Execution (Absolute) Slow Request Execution (Relative) High Memory Usage (Absolute) High Memory Usage (Relative) Inconsistent Output Size

Uncaught Java Exception Custom Event Fatal PHP Error PHP Error Job Execution Error Job Logical Failure Job Execution Delay Job Queue High Concurrency Level

© All rights reserved. Zend Technologies, Inc.

About Zend Server • Pre-integrated, tested PHP stack • Performance enhancements • Monitoring and diagnostics • Integrated with Zend Studio • Support, updates and hot fixes • Production-ready community edition

© All rights reserved. Zend Technologies, Inc.

Instrumentation on the next level

Zend Code Tracing

© All rights reserved. Zend Technologies, Inc.

Zend Server Code Tracing Project: A Flight Recorder for PHP Applications • New diagnostic technology in release 5.0 • Captures full problem data in production • Eliminates need to reproduce problems • Much faster debugging of PHP issues  Performance issues  Errors in application logic

© All rights reserved. Zend Technologies, Inc.

Our Requirements for Code Tracing View 1. Provide great user experience - highly interactive view 2. Ability to modify widget behavior 3. High performance – handle MBs of data 4. Good cross-browser support 5. Technical content and knowhow widely available

© All rights reserved. Zend Technologies, Inc.

Alternatives We Considered • Considered Adobe Flex and AJAX toolkits (e.g. Dojo) • Winner is… Adobe Flex! • Why Adobe Flex?  Performance  Flexibility  Maturity

© All rights reserved. Zend Technologies, Inc.

DEMO

© All rights reserved. Zend Technologies, Inc.

What’s Next? • Check out the new Flex flight recorder view in Zend Server  http://www.zend.com/products/server

• Start building your RIAs with Zend Studio and Flex Builder  Zend Studio - http://www.zend.com/products/studio  Adobe Flex Builder - http://www.adobe.com/products/flex/

© All rights reserved. Zend Technologies, Inc.

Using Adobe Flex with PHP

© All rights reserved. Zend Technologies, Inc.