Book Image

Mastering Yii 2 [Video]

By : Vitalii Tron
Book Image

Mastering Yii 2 [Video]

By: Vitalii Tron

Overview of this book

Leverage the incredible potential of Yii to build heavyweight web applications swiftly About This Video • Build a large-scale web application that can endure a large influx of users • Develop a robust application that can withstand any security breach • Enforce diverse techniques to avoid bottleneck traffic on the server In Detail Yii is a generic component-based PHP Web programming framework. In addition to being object-oriented, it also features the MVC design pattern. It is a high-performance framework and is used to develop heavy duty web applications quickly. With the rise in the dependability of the Internet, the influx of the users to our websites keeps swelling on a daily basis. Yii is just the right framework to help us cope with this heavy load. Mastering Yii2 will guide you through rapidly building a sophisticated, secure, and flexible web application. This comprehensive guide will help you to develop and enhance this web application by focusing on a new aspect in every video. We start by showing you how to set up our version control system using Git so that we can work effortlessly in a distributed team. We will then make our website more responsive using the Twitter Bootstrap framework and then enhance then its security. Then we will store our session data in different storage systems such as the database, Memcached and Redis, and analyze which storage best suits our needs. We will then walk you through step by step adding a full text search using Sphinx, ElasticSearch, and MongoDB NoSQL storage to find the desired data swiftly. Finally, we will take you through making our application robust by testing it with Codeception. By the end of this course, you’ll be an ace at developing heavily loaded web applications using Yii 2.
Table of Contents (7 chapters)
Chapter 5
Additional Storages for Cache and Sessions
Content Locked
Section 2
Using Memcached for Session Storage
A database is a great storage for sessions and cache, but it has one significant issue: each query to the database is time-consuming and may impact the performance of our high loaded web application. One of the solutions is to save cache and sessions in Memcached instead of database. - Save cache in Memcached - Use Memcached as the storage for session - Refresh our page and see the results