Skip to main content

book review: php development in the cloud

Cloud computing is no longer a buzz word, a hype that's been shouted at many technical conferences. No, it has turned into a real business model many people make a living off. And in that perspective I started exploring the world of cloud computing about a year ago. I also teamed up with Microsoft to promote and explore their new Windows Azure platform and even co-organized a contest deploying PHP applications on the Microsoft cloud solution.

A couple of weeks ago, my dear friend Cal Evans asked me to review the book "PHP Development in the Cloud" written by "Ivo Jansch" and "Vito Chin". I accepted as I was very interesting in exploring more of the cloudy world I just found myself in the middle of. Another reason was that both authors were fellow co-workers at Ibuildings back in the day. I promised this would be an objective review seen through the eyes of a developer just started exploring the mystifying world of cloud solutions.

The book
Let me say the book is a fun read. You can take it up to your bedroom as late-night read, read during lunch or even in the garden when the kids are playing about. It all evolves around an photo managing application that uses the power of the cloud to process uploaded images and manage them in a new distribute way. Both Ivo and Vito build up the story where they take one feature at the time and use one of the provided cloud platforms to facilitate or expand the application's functionality.

They also explain in plain words the different cloud solutions that are being offered these days and throw terms at you like IaaS, PaaS and SaaS with a detailed description why you would choose this specific cloud architecture followed by code examples. And this little extra attention to detail is something I could really appreciate as I was exploring these architectures but couldn't tie it to useful use cases why I should choose architecture A for this, but B for that. I'm glad Ivo and Vito cleared this fog for me.

At the end of the book you have a functional photo managing application that uses cloud solutions from different cloud suppliers, each with it's specific usefulness. I think that working out the example code and playing with it was what I needed to get the clue as I'm more focussed on hacking code.

The good
Like I already explained in my introduction, this book is well written and the order of chapters make it very easy to expand functionality step-by-step. If you're already familiar with cloud solutions, this book gives you some hands-on examples you can try out on different cloud platform architectures so you can decide which vendor provides the best solution for your needs.

I also enjoy seeing various references to other open-source tools that allow you to fine-tune and optimize your application, infrastructure or platform you want to run your application or feature on.

The bad
Although the book was well written and examples were clear and understandable, I found it hard to get some of the examples deployed on cloud solutions I haven't played with before. Luckily the internet is a good resource finding solutions to issues that crosses your path in the book. But I do want to state a small warning that if you're absolutely new to cloud development, the exercises in the book might frustrate you as you have to do additional searches to get it all working.

The ugly
Although this book is complete in describing all features of cloud architectures and solutions, I do miss a little disclaimer that indicates the examples are written by technology experts and require some knowledge on some of the implementations they use. Even for me some things I had to reread as I have no degree in Computer Science and some of the concepts were unknown to me. In my case, Google was my friendly teacher to bring me back up to speed.

If you're doing PHP and you're deploying apps on cloud technology, you'll find this book very interesting as it gives you some specific usages for each of the cloud solution providers. If either PHP or cloud technology is new to you, I'd recommend to get up to speed first before you jump into the dark.


  1. Excellent overview, it pointed me out something I didn’t realize before. I should encourage for your wonderful work. I am hoping the same best work from you in the future as well. Thank you for sharing this information with us.

    Web Devlopment


Post a Comment

Popular posts from this blog

PHP 7 and Apache on macOS Sierra

I posted several talks about compiling PHP from source, but everyone was trying to convince me that a package manager like Homebrew was a more convenient way to install. The purpose of Homebrew is simple: a package manager for macOS that will allow you to set up and install common packages easily and allows you to update frequently using simple commands. I used a clean installation of macOS Sierra to ensure all steps could be recorded and tested. In most cases you already have done work on your Mac, so chances are you can skip a few steps in this tutorial. APACHE AND PHP WITH HOMEBREW I’ve made this according to the installation instructions given on GetGrav. The installation procedures These installation procedures will set up your macOS Sierra with PHP 7.1 and Apache 2.4. Install Xcode command line tools (if not done yet)xcode-select --install Install Homebrew/usr/bin/ruby -e "$(curl -fsSL" Set up for in…

Speeding up database calls with PDO and iterators

When you review lots of code, you often wonder why things were written the way they were. Especially when making expensive calls to a database, I still see things that could and should be improved.
No framework development When working with a framework, mostly these database calls are optimized for the developer and abstract the complex logic to improve and optimize the retrieval and usage of data. But then developers need to build something without a framework and end up using the basics of PHP in a sub-optimal way.

$pdo = new \PDO( $config['db']['dsn'], $config['db']['username'], $config['db']['password'] ); $sql = 'SELECT * FROM `gen_contact` ORDER BY `contact_modified` DESC'; $stmt = $pdo->prepare($sql); $stmt->execute(); $data = $stmt->fetchAll(\PDO::FETCH_OBJ); echo 'Getting the contacts that changed the last 3 months' . PHP_EOL; foreach ($data as $row) { $dt = new \DateTime('2015-04-…

Sessions in PHP 7.1 and Redis

In case you have missed it, PHP 7.1.0 has been released recently. Now you can’t wait to upgrade your servers to the latest and greatest PHP version ever. But hold that thought a second… With PHP 7 lots of things have changed underneath the hood. But these changed features can also put unexpected challenges on your path. Our challenge One of these challenges that we faced was getting PHP 7.1 to play nice storing sessions in our Redis storage. In order to store sessions in Redis, we needed to install the Redis PHP extension that not only provides PHP functions for Redis, but also installs the PHP session handler for Redis. Because we upgraded our servers to PHP 7.1, we were looking to use the latest provided version for this Redis extension: redis-3.1.0. Once installed, we bumped against a nasty problem. Warning: session_start(): Failed to read session data: redis (path: tcp:// Searching the internet for this error, we didn’t got many hits that could point us into a dire…