Mastering the faster web with PHP, MySQL and JavaScript develop state-of-the-art web applications using the latest web technologies
Make web applications run faster by using advanced PHP, SQL and JavaScript techniques About This Book Use a customized PHP stack to create efficient data-driven web applications Ensure seamless implementation of a JavaScript & HTML 5 CSS based frontend and PHP based backend. Learn about problem...
Otros Autores: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham, England :
Packt Publishing
2018.
|
Edición: | 1st edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630678206719 |
Tabla de Contenidos:
- Intro
- Title Page
- Copyright and Credits
- Dedication
- Packt Upsell
- Foreword
- Contributors
- Table of Contents
- Preface
- Faster Web - Getting Started
- What is the Faster Web?
- The Faster Web and performance
- Measuring the Faster Web
- Before Measuring
- Benchmark testing and profiling
- Practical prerequisites
- Understanding Apache Bench (AB)
- Understanding Siege
- Installing and configuring useful tools
- Profiling PHP - xdebug Installation and Configuration
- SQL - Speed Testing
- JavaScript - Developer Tools
- Summary
- References
- Continuous Profiling and Monitoring
- What is Blackfire.io?
- Installing and configuring Blackfire.io
- Profiling manually with Blackfire.io
- Performance testing with Blackfire.io
- Monitoring performance with the TICK Stack
- Summary
- References
- Harnessing the Power of PHP 7 Data Structures and Functions
- PHP 7 optimizations
- Strict typing
- Immutable and packed arrays
- Memory allocation of integers and floats
- String interpolation and concatenation
- Parameter references
- Identifying more possible optimizations
- Functional programming and memoization
- Summary
- Reference
- Envisioning the Future with Asynchronous PHP
- Asynchronous non-blocking I/O calls
- Multithreading with pthreads
- Using the ReactPHP library
- Summary
- Measuring and Optimizing Database Performance
- SQL query performance
- The structure of indexes
- The execution plan
- Basic query optimization
- The performance schema and advanced query optimization
- Advanced benchmarking tools
- DBT2
- SysBench
- Summary
- Querying a Modern SQL Database Efficiently
- Modern SQL
- Definition
- WITH and WITH RECURSIVE
- CASE
- OVER and PARTITION BY
- OVER AND ORDER BY
- GROUPING SETS
- JSON clauses and functions
- FILTER
- LATERAL queries
- Summary.
- JavaScript and Danger-Driven Development
- The global object and local variables
- Avoiding global variables
- Evaluating local variables
- Avoiding bad idioms and keeping an eye on the very bad parts
- Bad idioms
- Bad constructs - the with statement
- Bad constructs - the eval statement
- Bad constructs - the try-catch-finally construct
- Avoiding inefficient loops
- Linters and strict mode
- Using the DOM efficiently
- Modifying the document tree
- Updating an invisible element
- Making style changes
- Searching for nodes
- Inspecting a large number of nodes
- Managing references from one document to another
- Caching DOM values
- Structuring and loading a JavaScript application
- Minimizing costly operations
- Cleaning up, minifying, and compressing resources
- Loading page resources
- Caching page resources
- Summary
- Functional JavaScript
- Simplifying functions
- Functional programming principles
- Functions as first-class citizens
- Dealing with side effects
- Immutability
- Functional programming techniques
- Map
- Filter
- Reduce
- Tail-call optimization
- What is TCO?
- How TCO works
- Recognizing tail-calls
- More upcoming JavaScript features
- Async functions
- Async generators and for-await-of loops
- Pipeline operator
- Partial application
- Summary
- Boosting a Web Server's Performance
- MOD_SPDY and HTTP/2
- Multiplexed and prioritized streams
- Server pushing
- Header compression
- HTTP/2
- PHP-FPM and OPCache
- PHP-FPM
- Zend OPcache
- ESI and Varnish Cache
- Edge Side Includes (ESI)
- Varnish Cache
- Client-side caching
- Browser caching
- Content Delivery Networks (CDNs)
- Other Faster Web tools
- Summary
- References
- Going Beyond Performance
- Clocked and perceived time
- Speed perception
- Reasonable delay and response times.
- UI design principles and patterns
- Beyond Performance" tools
- Summary
- References
- Other Books You May Enjoy
- Index.