万本电子书0元读

万本电子书0元读

顶部广告

Mastering The Faster Web with PHP, MySQL, and JavaScript电子书

售       价:¥

7人正在读 | 0人评论 9.8

作       者:Andrew Caya

出  版  社:Packt Publishing

出版时间:2018-06-11

字       数:23.1万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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 identification, best strategies, and UI design patterns as well to build a clean, fast web application Who This Book Is For The audience for this book would be PHP developers who have some basic knowledge of PHP programming and Web technologies. JavaScript programming knowledge is not necessary. What You Will Learn ? Install, confgure, and use profling and benchmarking testing tools ? Understand how to recognize optimizable data structures and functions to effectively optimize a PHP7 application ? Diagnose bad SQL query performance and discover ways to optimize it ? Grasp modern SQL techniques to optimize complex SQL queries ? Identify and simplify overly complex JavaScript code ? Explore and implement UI design principles that effectively enhance the performance ? Combine web technologies to boost web server performance In Detail This book will get you started with the latest benchmarking, profiling and monitoring tools for PHP, MySQL and JavaScript using Docker-based technologies. From optimizing PHP 7 code to learning asynchronous programming, from implementing Modern SQL solutions to discovering Functional JavaScript techniques, this book covers all the latest developments in Faster Web technologies. You will not only learn to determine the best optimization strategies, but also how to implement them. Along the way, you will learn how to profile your PHP scripts with Blackfire.io, monitor your Web applications, measure database performance, optimize SQL queries, explore Functional JavaScript, boost Web server performance in general and optimize applications when there is nothing left to optimize by going beyond performance. After reading this book, you will know how to boost the performance of any Web application and make it part of what has come to be known as the Faster Web. Style and approach The book has a step by step practical approach to developing highly efficient Web applications, with many practical and useful code snippets.
目录展开

Title Page

Copyright and Credits

Mastering The Faster Web with PHP, MySQL, and JavaScript

Dedication

Packt Upsell

Why subscribe?

PacktPub.com

Foreword

Contributors

About the author

About the reviewers

Packt is searching for authors like you

Preface

Who this book is for

What this book covers

To get the most out of this book

Download the example code files

Conventions used

Get in touch

Reviews

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

Leave a review - let other readers know what you think

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部