Zend, in co-operation with IBM, Microsoft, Rackspace, GoGrid and other cloud leaders, today have released their Simple API for Cloud Application Services project. The Simple Cloud API project empowers developers to use one interface to interact with the cloud services offered by different vendors. These vendors are all contributing to this open source project, making sure the Simple Cloud API “fits like a glove” on top of their service.
Zend Cloud adapters will be available for services such as:
- File storage services, including Windows Azure blobs, Rackspace Cloud Files, Nirvanix Storage Delivery Network and Amazon S3
- Document Storage services, including Windows Azure tables and Amazon SimpleDB
- Simple queue services, including Amazon SQS and Windows Azure queues
Note that the Simple Cloud API is focused on providing a simple and re-usable interface across different cloud services. This implicates that specific features a service offers will not be available using the Simple Cloud API.
Here’s a quick code sample for the Simple Cloud API. Let’s upload some data and list the items in a Windows Azure Blob Storage container using the Simple Cloud API:
// Create an instance
$storage = new Zend_Cloud_Storage_WindowsAzure(
'host' => 'blob.core.windows.net',
'accountname' => 'xxxxxx',
'accountkey' => 'yyyyyy'
// Create some data and upload it
$item1 = new Zend_Cloud_Storage_Item('Hello World!', array('creator' => 'Maarten'));
// Now download it!
$item2 = $storage->fetchItem('data/item.txt', array('returntype' => 2));
// List items
It’s quite fun to be a part of this kind of things: I started working for Microsoft on the Windows Azure SDK for PHP, we contributed the same codebase to Zend Framework, and now I’m building the Windows Azure implementations for the Simple Cloud API.
The full press release can be found at the Simple Cloud API website.
This is an imported post. It was imported from my old blog using an automated tool and may contain formatting errors and/or broken images.