14
© All rights reserved. Zend Technologies, Inc . PHP APPS ON THE MOVE MIGRATING FROM IN-HOUSE TO CLOUD

PHP Apps on the Move - Migrating from In-House to Cloud

Embed Size (px)

Citation preview

Page 1: PHP Apps on the Move - Migrating from In-House to Cloud

©All rights reserved. Zend Technologies, Inc.

PHP APPS ON THE MOVEMIGRATING FROM IN-HOUSE TO CLOUD

Page 3: PHP Apps on the Move - Migrating from In-House to Cloud

©All rights reserved. Zend Technologies, Inc.3

Typical Single Server Configurations

Apache Web ServerPHP

Session Files MySQL DB

Apache Web ServerPHP

Session Files

MySQL Server

All-in-One Configuration

Separate DB Server

Page 4: PHP Apps on the Move - Migrating from In-House to Cloud

©All rights reserved. Zend Technologies, Inc.4

Typical Multi-Server Configuration

MySQL Server

Apache Web ServerPHP

Session Files

Apache Web ServerPHP

Session Files

Load Balancer

Page 5: PHP Apps on the Move - Migrating from In-House to Cloud

©All rights reserved. Zend Technologies, Inc.5

Challenges• Main issues

Sessions especially with scale-down• It’s easy to add more session but how do you know when you

can remove?DB scaling

• Replication, mirroring, etc are not easy• Other Potential Problems

HA sessionsHA DBCaching

Page 6: PHP Apps on the Move - Migrating from In-House to Cloud

©All rights reserved. Zend Technologies, Inc.6

Page 7: PHP Apps on the Move - Migrating from In-House to Cloud

©All rights reserved. Zend Technologies, Inc.7

What does Mediaspike do?•Mediaspike generates leads for online and traditional colleges and universities

•Two primary sites: AchieveYourCareer.comFindYourDegree.com

•Custom Matching Algorithms to find best fit for students

•Targeted high-volume campaigns

Page 8: PHP Apps on the Move - Migrating from In-House to Cloud

©All rights reserved. Zend Technologies, Inc.8

The Old Way

• One giant server being fed from our subversion repository and backing up data to S3.

Apache Web ServerPHP

Session Files MySQL DB

Page 9: PHP Apps on the Move - Migrating from In-House to Cloud

©All rights reserved. Zend Technologies, Inc.9

Problems• No room for traffic bursts• FRAGILE - Don't want to upgrade X

because it may break Y.• Single point of failure - could shut down

our business for hours to days. • Encouraged manual "hacking". Rather

than run the proper build script, I'll just tweak this file on the live site. It's OK...

Page 10: PHP Apps on the Move - Migrating from In-House to Cloud

©All rights reserved. Zend Technologies, Inc.10

Flexible and Configurable PaaS• Pre-configured Zend PHP architecture to speed time to market

• Based on Zend and RightScale’s best practices

• Auto-scaling based on system and application load metrics, supported by load balancing

• PHP session clustering for high availability

• Redundant database with failover and recovery

Page 11: PHP Apps on the Move - Migrating from In-House to Cloud

©All rights reserved. Zend Technologies, Inc.11

Fully Integrated IDE

Self-serve setup

Team Support

Application Fabric

Cloud Development PlatformComplete PHP App Server

Transparent Scaling

Application Provisioning

App Performance Management

Caching Job Queuing

Diagnostics / Root cause analysis

Support

High Availability

Security Hot fixes

Centralized Configuration

Auto scalingCloud Infrastructure

Templates & Configuration

Design and Develop

Runtime Platform Manage

Eclipse IDE

PHP Tooling

PRODUCTION ECOSYSTEM

Zend PHP vs Open Source

Page 12: PHP Apps on the Move - Migrating from In-House to Cloud

©All rights reserved. Zend Technologies, Inc.12

With RightScale and Zend

Page 13: PHP Apps on the Move - Migrating from In-House to Cloud

©All rights reserved. Zend Technologies, Inc.13

Benefits• No more single point of (disastrous)

failure• MySQL master/slave replication and EBS

Snapshot backups "just work"• Better reliability because everything is

scripted. No more manual build processes

• Flexibility to change architecture as needed

• Increased capacity, of course

Page 14: PHP Apps on the Move - Migrating from In-House to Cloud

©All rights reserved. Zend Technologies, Inc.14

Q&A• Other Links