Menu Close

Month: July 2015 (page 1 of 3)

High Speed WordPress on HHVM + Hack: Talk

Takayuki Miyauchi is a WordPress plugin developer who’s known for WP Total Hacks, Nginx Cache Controller and a lot more.

Screen Shot 2015-07-31 at 19.39.14

Besides co-authoring the book, “The Bible of WordPress Plugin Development: To Improve Site Scalability”, he also created VCCW, which is a Vagrant-based WordPress environment for sites, themes and plugin development.

He also contributed to WP-CLI and is working as the backend engineer of DigitalCube Inc., Amazon Web Services Advanced Consulting Partner.

Miya is not only active in the community, but he also spoke in numerous tech events, and in the recent WordCamp Kansai 2015, he talked about High Speed WordPress on HHVM + Hack.

Miyauchi talking about AMIMOTO WordPress Cloud Hosting

AMIMOTO supports HHVM which is an open source virtual machine developed by Facebook. HHVM can run Hack language and PHP (Hack is almost 100% compatible with PHP).

Screen Shot 2015-07-31 at 19.09.23
With asynchronous programming, the performance is significantly improved including tasks being able to transfer control to one another with a thread of execution.

In this one, async functions are used to enable asynchronous programming in HHVM.

WordPress on AWS Meetup: Talks

Talks

WordPress on aws

“WordPress on AWS” talk by Kel.

Our team in DigitalCube chose these two platforms because WordPress is user-friendly, has a lot of users and has a strong community.

On the other hand, AWS has a lot of raw blocks and tools. We like it also for its deployment speed. Normally, a traditional deployment will take about 48-96 hours, but AWS AMI let us do that in minutes.

Since our team works majorly with these two platforms, we needed something to speed up our work. In terms of AWS Community, the biggest one is here in our country, JAWS-UG (Japan AWS User Group). Right now, JAWS-UG has 54 groups, while USA has about 43-44 groups.

What our team did was combine these two and came up with AMIMOTO, which is a WordPress Cloud Hosting. AMIMOTO is the combination of AWS, Nginx reverse proxy, MySQL tuning and HHVM.

Example sites, the issues they had and the solutions by WordPress & AWS:

  • Mazda’s blog’s issue has an unpredictable sudden traffic increase where resources end up either being too much or too little.
    • Solution: Amazon EC2 that can help sites be scalable and stop users from guessing how much resources they really need.
  • Large-scale media sites usually have unexpected peaks and high page views.
    • Solution: AutoScaling which is for apps with stable demand patterns &different usage daily, weekly or monthly. In times of high demand: AutoScaling will automatically increase the number of EC2 instances to maintain performance.

Based on the settings, EC2 instances on the system can be increased & decreased. You can increase / decrease instances based on how high/low the load will be. This makes it cost-efficient since access is unpredictable.

The good thing about AutoScaling is that even you’re only using one instance and it’s broken, it’s convenient for you to recover. 

Screen Shot 2015-07-29 at 14.15.17 (2)

  • News Sites issues are usually having multiple users and thousands of articles that can slow down the site.
    • Solution: having tons of articles and users are both possible with WordPress,where you can manage multiple users and assign access levels and capabilities to each user.
    • When you install WordPress from AMIMOTO, it comes with WP Booster CDN which is a WordPress plugin that is already pre-installed. This helps improve the speed of the site.

If you’re interested in trying WordPress on AWS, here’s a 14-day free trial.


How to use amimoto on development environment

Shinichi is a WordPress Theme Repository key reviewer, WordPress Bangkok Meeetup organizer & WordCamp Tokyo 2012 Executive Committee Chairman. He is currently living in Thailand with his wife & 2 kids. He demonstrated “How to use AMIMOTO on Development Environment”:

IMG_20150723_195342

Shinichi demonstrating how he uses AMIMOTO on development environment.


How to make your site Multilingual 

This was a talk by Matt who’s a polyglot working in the support team of WPML, a WordPress multilingual plugin.

IMG_20150723_202700

Matt showing statistics of top languages used on the internet.

December 2014 world internet usage shows that Asia and Europe have the highest number of internet users.

The top languages spoken by internet users are English, Chinese, Spanish and Japanese. The most popular language used on website is English, which is about 61%, while other languages are German,  Japanese and Russian.

Hopefully these statistics will give you an idea on the importance of running your websites in more than one language that can also help in increasing the number of your visitors.

He shared his experience in a foreign country where he tried to look for a restaurant using Google. The websites he normally visited were the ones that appear on the search results, or Google Maps with an English version. This is because Google promotes the English version of the content when it detects that he’s using an English version of the browser, or when he’s logged into his Google account.

Types of translations he mentioned are machine and human translations. “Machine translations are good for emergency cases“, Matt said. However, it’s full of misspellings and errors that lead to content that are incomprehensible.

Google offers machine translation for websites, but doesn’t allow it to be used as your own content. If you wish to use the free Google machine translation for your site, the correct way is to display Google’s website translation widget. This will pass visitors via Google’s translation. Google encourages and fully supports this mode.

Screen Shot 2015-07-29 at 14.54.44 (2)
 

A human translation cannot be replaced by machine since humans are capable of capturing the essence of culture and emotions, which are totally different when translated by machines.

An example of a WordPress Multilingual plugin is WPML that allows you to translate your content into languages easily.

Your content can be translated manually and can be also translated using WPML’s Translation Management which allows you to create translator accounts and assign to them translation jobs. 

WPML allows you to translate site title, pages, posts, categories, tags, images, menus, widgets, products, custom post types, custom fields, theme localization and theme options.


Amazon API Gateway & WordPress

Horike is a PM of WordPress projects and an AWS Solutions Architect. He maintains WordPress sites and has now developed 11 plugins. He spoke in several WordCamps / tech events and is a WordPress 4.2 Core Contributor.

Horike said, “Amazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale.”

What he tried was to connect WordPress to various AWS Services and this time he will focus more on WordPress and Amazon Machine Learning. 

Amazon Machine Learning is a service that makes it easy for developers of all skill levels to use machine learning technology. Amazon Machine Learning provides visualization tools and wizards that guide you through the process of creating machine learning (ML) models without having to learn complex ML algorithms and technology.” 

IMG_20150723_204439
 

Horike showing AWS architecture.

Screen Shot 2015-07-29 at 15.38.50 (2)
The data is related with direct marketing campaigns of a Portuguese banking institution. The marketing campaigns were based on phone calls. Often, more than one contact to the same client was required, in order to access if the product (bank term deposit) would be (‘yes’) or not (‘no’) subscribed.

Screen Shot 2015-07-29 at 15.38.54 (2)
For more details on this talk, you can find out more on Horike’s blog:


WordPress Media Management: How it’s Done, Why it’s Close to Useless.

Riccardo is a game and web programmer from Italy. He now lives in Japan and has his own company in Osaka.

IMG_20150723_211715

Riccardo talking about how to configure WordPress Media Gallery

Although WordPress can support all types of files, WordPress does not have a category or tag for media and you cannot reuse a gallery.

The solutions are either gallery integrated in themes with custom page template, third party plugins for managing media or black magic!

Screen Shot 2015-07-29 at 16.07.17 1(2)
Riccardo developed a Zero Gallery WordPress plugin where everything is in one place. He showed a demo of the plugin where a user is able to do a complex function with just a few clicks.

This plugin enables you to keep all your media files in one place and manage them efficiently without leaving the WordPress interface.


Wocker & WordCamp Kansai 2015

The final talk of our WordPress on AWS Meet-up was by Kite, who’s a designer, programmer, core contributor and a representative director.

IMG_20150723_212922
Kite inviting us to WordCamp Kansai 2015
Kite talked about Wocker, which is a rapid Docker-based WordPress environment. Using Wocker, it only takes 3 seconds to create a new WordPress Environment.

Screen Shot 2015-07-30 at 22.19.22
For every virtualized application it has an app – which may be 10s of MB – and the necessary binaries and libraries, but also an entire guest OS – which may weigh 10s of GB.

On the other hand, the Docker Engine container comprises just the application and its dependencies. It runs as an isolated process in userspace on the host operating system, sharing the kernel with other containers. Thus, it enjoys the resource isolation and allocation benefits of VMs but is much more portable and efficient.

Getting started with Wocker:
1. Install Vagrant
2. Install Virtual Box
3. vagrant-hostsupdater plugin
4. Clone Wocker repo
5. Vagrant up

For best practice the recommended commands are Wocker, DO NOT destroy the Vagrant machine of Wocker, Don’t install more than one Wocker. Instead, create containers to manage multiple sites.

cover4
WordPress on AWS Meetup in Kansai was held last Thursday, August 23, 2015 at DEP. Kobe co-working space, which is only a 3-minute walk from JR Motomachi Station.

IMG_20150723_200223
This was the first WordPress on AWS Meetup organized by some members of DigitalCube team. Why we did this Kansai meetup is because we love WordPress and AWS, we want to share our experiences with the community and we want to connect with other WordPress and AWS professionals out there.

Summer Holiday Announcement

To all DigitalCube clients:

Please be advised of our upcoming summer holiday schedule:

  • Holiday duration: August 13, 2015 (Thursday) – August 16, 2015 (Sunday)
  • Business operation will resume on: August 17, 2015 (Monday, starting from 10:00a.m.)

You may reach us through the following:

  • Before summer holiday: You may call our office on Wednesday, August 12, 2015, until 18:00 p.m. Mail, fax or phone inquiries made until 15:00 p.m. will be replied to on the same day. However, for inquiries received beyond 18:00 p.m., we will respond when we resume our business on August 17, Monday from 10:00 a.m. onwards.
  • Web inquiry: For web inquiries and/or application made on August 12 until 15:00 p.m. will be replied to on the same day. Inquiries and applications received beyond the mentioned date and time will be replied to by our team on Monday, August 17 from 10:00 a.m. onwards.

Please note that this holiday schedule applies to all DigitalCube services and solutions.

If possible, kindly plan your orders accordingly. Thank you.

© 2017 DigitalCube Blog. All rights reserved.

Theme by Anders Norén.