SlideShare a Scribd company logo
1 of 142
PHPon Windowsand on Windows Azure Maarten Balliauw – RealDolmenE-mail: maarten.balliauw@realdolmen.comBlog: http://blog.maartenballiauw.beTwitter: @maartenballiauw
Who am I? Maarten Balliauw Antwerp, Belgium www.realdolmen.com Focus on web ASP.NET, ASP.NET MVC, PHP, Azure, VSTS, … MVP ASP.NET Interested in interoperability PHPExcel, PHPLinq, Windows Azure SDK for PHP, ... http://blog.maartenballiauw.be http://twitter.com/maartenballiauw
Agenda Why PHP matters… PHP on Windows PHP on Windows Azure
Before we start… Much information! Slides decorated with topic: 	     PHP on Windows 	     PHP on Windows Azure
Why PHP matters… Why is Microsoft investing in PHP efforts?
Simple reason… Web applications Wordpress Drupal Joomla phpBB MediaWiki SugarCRM Gallery2 Commercial entities Yahoo! Flickr Digg Facebook YouTube Wikipedia  Hard to ignore!
PHP on Windows If PHP matters, better make it a first-class citizen…
Agenda Microsoft and the PHP Core Other initiatives SDK’s Tooling
Microsoft and the PHP Core Before Now
http://windows.php.net
PHP 5.3 on Windows Is the most significant update to PHP on Windows! All libraries updated to latest versions (in some cases newer versions that used on Linux) Re-write of the build system from scratch Top PHP Windows community programmer working for Microsoft (Pierre Joye) Build with VS 2008 Available in 32 and 64 bit version Created windows.php.net 99% of all POSIX calls changed to native Windows calls
By the numbers: Running PHPBench looped 5x Both computers are a HP 8 core (2 procs x Quad core) 16gb ram. Linux (Centos 5.2) vs. Windows Server 2008 x86 NOTE: phpbench onlytests internal PHP engineperformance. It doesnot do IO of any kind.
Core is not everything… Other initiatives Web Platform Installer FastCGI on IIS Wincache extension SQL Server driver for PHP SDK’s (a lot!) Tooling
Microsoft Web Platform Installer “Yum for Windows”?
Easy installation of YOUR environment Easy installer providing Platform installation (IIS, extra modules, configuration, …) Both ASP.NET and PHP Application installation Both ASP.NET and PHP Publish your app through WebPI http://microsoft.com/web
Demo Web Platform Installer
FastCGI on IIS How and where will my application run?
PHP on Windows – History IIS support has been there for a long time Apache runs on Windows as well But… IIS gives best performance on Windows Unfortunately the choice was always between stability and performance…
Allow me to explain…
And along came improvement!
FastCGI
Demo FastCGI on IIS
IIS execution pipeline Since your PHP app is part of the IIS execution pipeline… …you can use IIS URL rewriting …you can use IIS as a load balancer (ARR) www.vipriva.com …you can use any .NET HttpModule out there ASP.NET membership / authentication Output caching …
Demo Application A very simple blog
Application description Simple blog engine 1 table: Posts Id (PK) Slug Title Body Author PubDate Caching Pretty URLs Windows Authentication
Setting up the SQL server database
WinCache extension Making it even faster…
Windows Cache Extension (“WinCache”) PHP module for 5.2 and 5.3 IIS specific PHP accelerator So only works in IIS! No code modifications needed in your application PHP functions to obtain information about the cache status http://www.iis.net/download/WinCacheForPhp
Cache layers Bytecode cache Caches compiled PHP scripts Script cache Cache script sources in memory to reduce I/O access and UNC file share access Relative file path cache Caches relative file path Session cache Sessions stored in shared memory
Demo WinCache extension
SQL Server Driver for PHP Data access should be fast as well!
SQL Server Driver for PHP PHP extension for Windows So only works on Windows! Reliable, scalable and fast integration with SQL Server for PHP Relies on the Microsoft SQL Server Native Client to communicate with SQL Server.
PDO support SQL Server Driver for PHP v2.0 Support for PHP Data Objects (PDO) Better UTF-8 support Example: Drupal 7 on SQL Serverhttp://www.commerceguys.com/about/news/drupal-7-sql-server-preview
Here are your options!
Using the SQL Server Driver for PHP Connecting $connection = new PDO('sqlsrv:server=.QLEXPRESS;database=blog');
Using the SQL Server Driver for PHP Querying class Post {   public $Id; // ...} $posts = array(); $query = 'SELECT * FROM posts ORDER BY PubDate DESC'; $statement = $connection->query($query); while ( $row = $statement->fetchObject('Post') ) { $posts[] = $row; }
Demo SQL Server Driver for PHP
SDK’s What else is out there?
Microsoft and PHP = LOTS of goodies Some highlights… SQL Server Reporting Services SDK for PHP OData SDK for PHP Windows Azure Tools for Eclipse Windows Azure SDK for PHP AppFabric SDK for PHP Windows Azure Command-Line Tools for PHP Eclipse Tools for Silverlight Information Cards for PHP Internet Explorer Webslices and Accelerators for PHP PHP and Silverlight SQL CRUD Application Wizard for PHP Toolkit for PHP and Bing Maps Overview: http://www.interoperabilitybridges.com/
SQL Server Reporting Services SDK for PHP SSRS? Reporting tool in SQL Server Very powerful! Various output formats Can be linked to MySQL, PostgreSQL, … API to interoperate with SQL Server Reporting Services List available reports within a PHP applications, Provide custom parameters from a PHP web form, Manage the rendering of the reports within a PHP application http://ssrsphp.codeplex.com
OData SDK for PHP OData? Open Data Protocol Unlock your data and free it from silos that exist in applications today Builds on HTTP, AtomPub and JSON RESTful interface Way data is delivered in MS CN “Dallas” API to OData Generate proxy classes to OData feeds CRUD on OData feeds http://odataphp.codeplex.com/
OData SDK for PHP /* connect to the OData service  */    $svc = new NorthwindEntities(NORTHWIND_SERVICE_URL); /* get the list of Customers in the USA +the list of Orders */     $query = $svc->Customers()                  ->filter("Country eq 'USA'")                  ->Expand('Orders');     $customerResponse = $query->Execute(); /* get only CustomerID and CustomerName */     $query = $svc->Customers()                  ->filter("Country eq 'USA'")                  ->Select('CustomerID, CustomerName');     $customerResponse = $query->Execute(); /* create a new customer */     $customer = Customers::CreateCustomers('channel9', 'CHAN9');     $proxy->AddToCustomers($customer);  /* commit the change on the server */             $proxy->SaveChanges();
Windows Azure Microsoft’s Cloud Computing offering Web/worker role (= virtual machine) Blobs, tables, queues, drives (= storage) SQL Azure (= +/- SQL Server) AppFabric (= access control & firewall punching) “Dallas” (= Data-as-a-Service) Working with PHP Windows Azure Tools for Eclipse Windows Azure SDK for PHP AppFabric SDK for PHP Windows Azure Command-Line Tools for PHP Zend Framework contribution More on this: later today!
Tooling How do I use all this?
Microsoft Expression Web
Windows Azure Tools for Eclipse
Silverlight Tools for Eclipse
SEO Optimization Tool
What’s in the cloud? DEMO Tooling
Summary PHP on Windows is a priority for Microsoft Full range of PHP support Products and Services Attract more customers to the MS platform through world-class support and resources  Microsoft wants you to succeed
PHP on Windows Azure Cloudy with a chance of PHP
Agenda Windows Azure? Windows Azure and PHP SDK’s Tooling
What’s in the cloud? Windows Azure
Definition of cloud (NIST) On-demand self service Standardized access Location independant resource pooling Rapid elasticity Pay per use
Cloud computing 101 ,[object Object]
Networking, data, storage, compute
On-demand, scalable
Location independant
Pay-per-use
No upfront investment
IT becomescost model
Notvirtualization!
Virtualization is just a tool for cloud,[object Object]
The Windows Azure Platform Windows Azure SQL Azure Windows Azure platform AppFabric Microsoft Codename “Dallas” Microsoft Codename “Sydney”	 Developer tools
Azure Service Platform
Windows Azure Flexible application hosting Lights-out service management Provide code & service model, hit ENTER Storage at massive scale Blobs, tables, queues Compute Storage Management There’s an SDK for this: http://phpazure.codeplex.com
Storage options Blobs, tables, queues Windows Azure Drive (a.k.a. Xdrive) Virtual NTFS volume that can be mounted .vhd format Use existing NTFS API’s Easier migration Stored on blob storage provides quick mount/unmount in other VM
SQL Azure Relational database as a service Highly available, automatically maintained Extension of the SQL Server Data Platform Business Analytics Reporting Data Sync Database There’s a driver for this: http://sqlsrvphp.codeplex.com
SQL Azure Relational database, provided as a service Highly symmetrical development and tooling experience (use TDS protocol and T-SQL) Highly scaled out, on commodity hardware Built on the SQL Server technology foundation Beyond “hosted database” High availability, DB provisioning, and DB management are provided by the service Pay for what you use
Windows Azure AppFabric Secure connections between services Across organizational boundaries Claims-based access control ServiceBus AccessControl There’s an SDK for this: http://dotnetservicesphp.codeplex.com/
Service Bus Overview
Microsoft Codename “Dallas” Content brokerage and discovery platform  Available as a CTP at commercial launch Microsoft Codename “Dallas”Information Services
Microsoft Codename “Sydney” - Connectivity WINDOWS AZURE PLATFORM ENTERPRISE Data Service Service Bus Access Control Service Code Name “Project Sydney”
North America Region   Asia Pacific Region Europe Region N. Europe  Sub-region   N. Central – US   Sub-region   E. Asia Sub-region  W. Europe  Sub-region  S. Central - US  Sub-region S.E. Asia Sub-region
What’s in the cloud? Deploying an application
Service Deployment Service Service Service Model Your Service DNS LB Web Portal (API) DNS config LB Fabric Controller
Service Scaling Your Service Service Service DNS Service Service Service Service Service LB Service Web Portal (API) LB Model Fabric Controller
Service Monitoring & Recovery Your Service Service DNS Service Service Service LB Web Portal (API) ! LB Model Fabric Controller
What’s in the cloud? Using PHP with Windows Azure
Enabling Interoperability
Using PHP with Windows Azure It’s all about… Running PHP Code in Windows Azure Eclipse Tooling Build, Test, Deploy PHP Projects Create New or Use Existing PHP Projects Scaling PHP Apps Using Cloud Storage from PHP Using Windows Azure Storage Using SQL Azure
Running PHP in Windows Azure How to Do It Host in Web role (like .NET) Supply PHP runtime Point to runtime via FastCGIconfiguration in Web.config Web.roleConfig Eclipse Tooling athttp://windowsazure4e.org does the above for you Command-line tools at http://azurephptools.codeplex.com PHP  Web Role Instance 1 VIP Load Balancer PHP  Web Role Instance 2
Developer tools Development Use your favourite editor Local debugging Windows with IIS 7.x Visual Studio Windows Azure tools for Eclipse Packaging Windows Azure SDK Deployment Any browser
PHP + Cloud Storage Windows Azure Storage On-Premise VIP PHP Web Role Load Balancer PHP App SQL Azure Windows Azure Platform
Windows Azure Data Storage
Windows Azure Data Storage
Windows Azure SDK for PHP A PHP programming model for Windows Azure Storage
PHP with Windows Azure Storage Windows Azure SDK for PHP at http://phpazure.codeplex.com PHP programming model for Windows Azure Storage Features  PHP classes for Blobs, Tables & Queues Store PHP sessions in Table Storage File system wrapper for Blob Storage
Windows Azure SDK for PHP Overview Enables PHP developers to take advantage of the Microsoft Cloud Services Platform  – Windows Azure.   Open source project being contributed to Zend Framework (http://framework.zend.com) Features PHP classes for Windows Azure Blobs, Tables & Queues (for CRUD operations) Helper Classes for HTTP transport, AuhN/AuthZ, REST & Error Management Manageability, Instrumentation & Logging support Project site:  http://phpazure.codeplex.com/ Logical architecture  Your PHP application REST Compute Storage Manage Deployment scenarios PHP Runtime Any internet connected Server PHP Runtime REST REST
Blob  Container Entities Account Table http://<account>.blob.core.windows.net/<container> Messages Windows Azure Storage Concepts http://<account>.table.core.windows.net/<table> Queue http://<account>.queue.core.windows.net/<queue>
Windows Azure Blobs Unstructured data Scale massively At least 3 instances, 5 in optimal situation Can be used as CDN Can be mapped using a custom domain
Tools for connecting to blob storage CloudBerryLab Explorerhttp://www.cloudberrylab.com Azure Storage Explorerhttp://azurestorageexplorer.codeplex.com/ Onlinehttp://myazurestorage.com / ftp://ftp.cloudapp.net Windows Azure tooling for Eclipse
Blobs Sample $blobStorage= new Microsoft_WindowsAzure_Storage_Blob(); // Create if (!$blobStorage->containerExists($containerName)) { $blobStorage->createContainer($containerName); $blobStorage->setContainerAcl($containerName,  Microsoft_WindowsAzure_Storage_Blob::ACL_PUBLIC); } // Store $blob = $blobStorage->putBlob($containerName, $blobName,  $localFilename, $metadata); /* @var $blob Microsoft_WindowsAzure_Storage_BlobInstance */
Blobs Sample Cont… // Copy $result = $blobStorage->copyBlob(      $containerName, $blobName, $containerName, $blob2Name); // Retrieve $tempStore= azure_getlocalresourcepath('tempstore'); $tempPath= $tempStore. '' . $imageId; $blobStorage->getBlob($containerName, $blobName, $tempPath); // Delete $result = $blobStorage->deleteBlob($containerName, $blobName); $result = $blobStorage->deleteContainer($containerName); http://phpazurecontrib.codeplex.com
Blob Stream Wrapper $blobStorage= new Microsoft_WindowsAzure_Storage_Blob(); // Register: $blobStorage->registerStreamWrapper(); // registers azure:// // or $blobStorage->registerStreamWrapper('blob://'); // use blob:// // Use $fp= fopen('azure://mycontainer/myfile.txt', 'r'); // ... fclose($fp);
Windows Azure Drive (a.k.a. Xdrive) Virtual NTFS volume that can be mounted .vhd format Use existing NTFS API’s Easier migration Stored on blob storage provides quick mount/unmount in other VM http://phpazurecontrib.codeplex.com
Queue Workflow Concepts Windows Azure Queue Provides Guarantee delivery (two-step consumption) Worker Dequeues Message and mark it as Invisible Worker Deletes Message when finished processing it If Worker role crashes, message becomes visible for another Worker to process Doesn’t guarantee “only once” delivery Doesn’t guarantee ordering Best effort FIFO Worker Role Web Role Input Queue (Work Items) Worker Role Azure Queue Web Role Worker Role Web Role Worker Role
Azure Queues RemoveMessage GetMessage (Timeout) Worker Role PutMessage Queue Msg 1 Msg 2 Msg 2 Msg 1 Web Role Worker Role Worker Role Msg 3 Msg 4 Msg 2
Loosely Coupled Work with Queues Worker-Queue Model Load work in a queue Many workers consume the queue Input Queue (Work Items) Azure Queue Worker Role Web Role Worker Role Web Role Worker Role Web Role Worker Role
Queues $queueClient= new Microsoft_WindowsAzure_Storage_Queue(); // Create $result = $queueClient->createQueue('imageQueue'); // Delete $queueClient->deleteQueue('imageQueue'); // Add message $queueClient->putMessage('imageQueue', $message, $ttl); // Retrieve Messages $messages = $queueClient->getMessages('imageQueue', 10); foreach($messages as $message) { // Do work here... $queueClient->deleteMessage('imageQueue', $message); }
Windows Azure Data Storage – Tables (Terms Part 1) Table  Contains a set of entities.   Entity (Row)  Basic data items stored in a table.   Property (Column)  Single value in an entity.    RowKey Unique ID of the entity within a partition Timestamp Time it was created
Windows Azure Data Storage – Tables (Terms Part 2) Partition  Entities in a table with the same partition key PartitionKey  Segments entities in to partitions to automatically distribute the table’s entities over many storage nodes. Sort Order There is a single index provided, where all entities in a table are sorted by PartitionKey and then RowKey
Key Example – Blog Posts Partition 1 Partition 2 Getting all of dunnry’s blog posts is fast Single partition Getting all posts after 2008-03-27 is slow Traverse all partitions
Table Sample $tableStorage= new Microsoft_WindowsAzure_Storage_Table( 'table.core.windows.net', 'myaccount', 'myauthkey'); // Create $result = $tableStorage->createTable($tableName); // List  $result = $tableStorage->listTables(); foreach($result as $table) { echo 'Table name is: ' . $table->Name . ""; } // Delete $tableStorage->deleteTable($tableName);
Tables with Entities // Structured entity class ImageEntityextends  Microsoft_WindowsAzure_Storage_TableEntity { /**      * @azure filename      */ public $filename; /**      * @azure size Edm.Int64      */ public $size; } // Unstructured entity // Microsoft_WindowsAzure_Storage_DynamicTableEntity
Tables with Entities Cont… // Insert $image = new ImageEntity($partitionKey, $rowKey); $image->filename = $_FILES['imageUpload']['name']; $image->size = $_FILES['imageUpload']['size']; $image = $tableStorageClient->insertEntity($tableName, $image); // Retrieve $image = $tableStorage->retrieveEntityById($tableName,  $partitionKey, $rowKey, 'ImageEntity'); // Update $image->filename = 'newname.jpg'; $result = $tableStorage->updateEntity($tableName, $image); // Delete $result = $tableStorage->deleteEntity($tableName, $image);
Table Queries // Filter condition $select = "filesizegt 1024 and PartitionKeyeq '$partitionKey'"; // Or fluent interface $select = $tableStorage->select()->from($tableName)           ->where('filesizegt 1024')           ->andWhere('PartitionKeyeq ?', $partitionKey); // Run query $images = $tableStorage->storageClient->retrieveEntities( 'testtable', $select, 'ImageEntity' ); foreach($images as $image) { echo 'Name: ' . $image->filename . ""; }
Batching Operations // Start batch $batch = $tableStorage->startBatch(); // Insert multiple $images = generateEntities(); foreach($images as $image) { $tableStorage->insertEntity($tableName, $image); } // Commit $batch->commit();
Table session handler $sessionHandler     = new Microsoft_WindowsAzure_SessionHandler($tableStorage); $sessionHandler->register(); session_start(); if (!isset($_SESSION['start'])) { $_SESSION['start'] = time(); }
SQL Azure A relational database for the cloud
SQL Azure and Windows Azure Table Comparison SQL Azure Tables Fully structured Strongly typed Relational(RDBMS) Highly scalable Windows Azure Tables Semi-structured Loosely typed Non-Relational(Not RDBMS) Massively scalable
SQL Azure Features Supported Tables, Indexes, Views Stored Procedures Triggers Constraints Table Variables Temp Tables (#Name) Not supported Physical Server Access  Catalog DDL Common Language Runtime Service Broker Reporting Services Analysis Services Distributed Transactions and Queries
SQL AzureDeployment Web Portal (API) DB Script SQL Azure TDS
SQL AzureAccessing databases Web Portal (API) Your App SQL Azure TDS Change Connection String
Database Replicas Single Database Multiple Replicas Replica 1 Single Primary Replica 2 DB Replica 3
SQL AzureDatabase Monitoring & Recovery Web Portal (API) ! Your App SQL Azure TDS
SQL Azure Server Creation
SQL Azure Firewall Maintenance ,[object Object]
Easy one-screen portal maintenance,[object Object]
Migrating schema and data SQL Azure Migration Wizardhttp://sqlazuremw.codeplex.com SQL Azure Data Sync Tool for SQL Serverhttp://www.microsoft.com/windowsazure/developers/sqlazure/datasync/ SQL Server Management Studio 2008 R2 November Community Technology Preview
PHP with SQL Azure SQL Server Driver for PHP at http://sqlsrvphp.codeplex.com/ Supports PHP access to SQL Azure Features Choose between SQL Server and SQL Azure by changing connection string Use from on-premise apps or in Windows Azure
PHP with AppFabric AppFabric SDK for PHP developers athttp://dotnetservicesphp.codeplex.com/ Supports PHP on service bus and access control Features Expose on-premise apps on an external endpoint without opening firewall Pub/sub scenario’s …
Solution accelerators MySQL http://code.msdn.microsoft.com/winazuremysqlphp Memcached http://code.msdn.microsoft.com/winazurememcached MediaWiki http://code.msdn.microsoft.com/winazuremediawiki Tomcat http://code.msdn.microsoft.com/winazuretomcat
What’s in the cloud? Demo Application ImageCloud
Demo Application Eclipse Tools for Windows Azure Windows Azure SDK for PHP And a demo app!
ImageCloud Upload your images! Free, unlimited storage! Images stored in multiple formats! Delivered trough a high-speedcontent-delivery network! Repurposed adaptive functionality! Empowered best-of-breed methodology! Virtualized granular service! Integrated cloud-based deliverable! ImageCloud
ImageCloud Architecture WebRole Worker Role Computation Services End Users ImageCloud Table Storage Blob Storage Queue Service Storage Services
What’s in the cloud? Windows Azure Companion What is THAT again?
Windows Azure Companion “WebPI for Windows Azure” Install applications on Windows Azure instance Based on ATOM feed
Windows Azure Companion
What’s in the cloud? DemO Windows Azure Companion
When the box is gray, you’re okay. When the box is blue a bill is due.
What’s in the cloud? Getting started
3 simple steps… Get an account Get the tools Play, learn, develop, deploy

More Related Content

What's hot

What you need to know bout html5
What you need to know bout html5What you need to know bout html5
What you need to know bout html5Kevin DeRudder
 
An Introduction to HTML5
An Introduction to HTML5An Introduction to HTML5
An Introduction to HTML5Steven Chipman
 
XML and Web Services with Groovy
XML and Web Services with GroovyXML and Web Services with Groovy
XML and Web Services with GroovyPaul King
 
Using Web Standards to create Interactive Data Visualizations for the Web
Using Web Standards to create Interactive Data Visualizations for the WebUsing Web Standards to create Interactive Data Visualizations for the Web
Using Web Standards to create Interactive Data Visualizations for the Webphilogb
 
HTML5 and CSS3 refresher
HTML5 and CSS3 refresherHTML5 and CSS3 refresher
HTML5 and CSS3 refresherIvano Malavolta
 
HTML5 and the dawn of rich mobile web applications pt 1
HTML5 and the dawn of rich mobile web applications pt 1HTML5 and the dawn of rich mobile web applications pt 1
HTML5 and the dawn of rich mobile web applications pt 1James Pearce
 
Top 10 HTML5 features every developer should know!
Top 10 HTML5 features every developer should know!Top 10 HTML5 features every developer should know!
Top 10 HTML5 features every developer should know!Gill Cleeren
 
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)Nicholas Zakas
 
Realize mais com HTML 5 e CSS 3 - 16 EDTED - RJ
Realize mais com HTML 5 e CSS 3 - 16 EDTED - RJRealize mais com HTML 5 e CSS 3 - 16 EDTED - RJ
Realize mais com HTML 5 e CSS 3 - 16 EDTED - RJLeonardo Balter
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5Gil Fink
 
Angular vs React for Web Application Development
Angular vs React for Web Application DevelopmentAngular vs React for Web Application Development
Angular vs React for Web Application DevelopmentFITC
 
Supercharging WordPress Development - Wordcamp Brighton 2019
Supercharging WordPress Development - Wordcamp Brighton 2019Supercharging WordPress Development - Wordcamp Brighton 2019
Supercharging WordPress Development - Wordcamp Brighton 2019Adam Tomat
 
Experience Manager 6 Developer Features - Highlights
Experience Manager 6 Developer Features - HighlightsExperience Manager 6 Developer Features - Highlights
Experience Manager 6 Developer Features - HighlightsCédric Hüsler
 
HTML 5 Step By Step - Ebook
HTML 5 Step By Step - EbookHTML 5 Step By Step - Ebook
HTML 5 Step By Step - EbookScottperrone
 
Best Practices for WordPress in Enterprise
Best Practices for WordPress in EnterpriseBest Practices for WordPress in Enterprise
Best Practices for WordPress in EnterpriseTaylor Lovett
 
Basics of css and xhtml
Basics of css and xhtmlBasics of css and xhtml
Basics of css and xhtmlsagaroceanic11
 
Local storage in Web apps
Local storage in Web appsLocal storage in Web apps
Local storage in Web appsIvano Malavolta
 
Welcome Firefox OS in india with your app - Mumbai Firefox OS hackathon - 201...
Welcome Firefox OS in india with your app - Mumbai Firefox OS hackathon - 201...Welcome Firefox OS in india with your app - Mumbai Firefox OS hackathon - 201...
Welcome Firefox OS in india with your app - Mumbai Firefox OS hackathon - 201...Frédéric Harper
 
Best Practices for Building WordPress Applications
Best Practices for Building WordPress ApplicationsBest Practices for Building WordPress Applications
Best Practices for Building WordPress ApplicationsTaylor Lovett
 

What's hot (20)

What you need to know bout html5
What you need to know bout html5What you need to know bout html5
What you need to know bout html5
 
An Introduction to HTML5
An Introduction to HTML5An Introduction to HTML5
An Introduction to HTML5
 
XML and Web Services with Groovy
XML and Web Services with GroovyXML and Web Services with Groovy
XML and Web Services with Groovy
 
Using Web Standards to create Interactive Data Visualizations for the Web
Using Web Standards to create Interactive Data Visualizations for the WebUsing Web Standards to create Interactive Data Visualizations for the Web
Using Web Standards to create Interactive Data Visualizations for the Web
 
HTML5 and CSS3 refresher
HTML5 and CSS3 refresherHTML5 and CSS3 refresher
HTML5 and CSS3 refresher
 
HTML5 and the dawn of rich mobile web applications pt 1
HTML5 and the dawn of rich mobile web applications pt 1HTML5 and the dawn of rich mobile web applications pt 1
HTML5 and the dawn of rich mobile web applications pt 1
 
Top 10 HTML5 features every developer should know!
Top 10 HTML5 features every developer should know!Top 10 HTML5 features every developer should know!
Top 10 HTML5 features every developer should know!
 
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
Progressive Enhancement 2.0 (jQuery Conference SF Bay Area 2011)
 
Realize mais com HTML 5 e CSS 3 - 16 EDTED - RJ
Realize mais com HTML 5 e CSS 3 - 16 EDTED - RJRealize mais com HTML 5 e CSS 3 - 16 EDTED - RJ
Realize mais com HTML 5 e CSS 3 - 16 EDTED - RJ
 
Introduction to HTML5
Introduction to HTML5Introduction to HTML5
Introduction to HTML5
 
Angular vs React for Web Application Development
Angular vs React for Web Application DevelopmentAngular vs React for Web Application Development
Angular vs React for Web Application Development
 
Supercharging WordPress Development - Wordcamp Brighton 2019
Supercharging WordPress Development - Wordcamp Brighton 2019Supercharging WordPress Development - Wordcamp Brighton 2019
Supercharging WordPress Development - Wordcamp Brighton 2019
 
HTML5 JS APIs
HTML5 JS APIsHTML5 JS APIs
HTML5 JS APIs
 
Experience Manager 6 Developer Features - Highlights
Experience Manager 6 Developer Features - HighlightsExperience Manager 6 Developer Features - Highlights
Experience Manager 6 Developer Features - Highlights
 
HTML 5 Step By Step - Ebook
HTML 5 Step By Step - EbookHTML 5 Step By Step - Ebook
HTML 5 Step By Step - Ebook
 
Best Practices for WordPress in Enterprise
Best Practices for WordPress in EnterpriseBest Practices for WordPress in Enterprise
Best Practices for WordPress in Enterprise
 
Basics of css and xhtml
Basics of css and xhtmlBasics of css and xhtml
Basics of css and xhtml
 
Local storage in Web apps
Local storage in Web appsLocal storage in Web apps
Local storage in Web apps
 
Welcome Firefox OS in india with your app - Mumbai Firefox OS hackathon - 201...
Welcome Firefox OS in india with your app - Mumbai Firefox OS hackathon - 201...Welcome Firefox OS in india with your app - Mumbai Firefox OS hackathon - 201...
Welcome Firefox OS in india with your app - Mumbai Firefox OS hackathon - 201...
 
Best Practices for Building WordPress Applications
Best Practices for Building WordPress ApplicationsBest Practices for Building WordPress Applications
Best Practices for Building WordPress Applications
 

Similar to PHP on Windows and on Azure

Just another Wordpress weblog, but more cloudy
Just another Wordpress weblog, but more cloudyJust another Wordpress weblog, but more cloudy
Just another Wordpress weblog, but more cloudyMaarten Balliauw
 
Just Another Word Press Weblog But More Cloudy
Just Another Word Press Weblog   But More CloudyJust Another Word Press Weblog   But More Cloudy
Just Another Word Press Weblog But More CloudyMaarten Balliauw
 
Windows Azure & How to Deploy Wordress
Windows Azure & How to Deploy WordressWindows Azure & How to Deploy Wordress
Windows Azure & How to Deploy WordressGeorge Kanellopoulos
 
Php Asp Net Interoperability Rc Jao
Php Asp Net Interoperability Rc JaoPhp Asp Net Interoperability Rc Jao
Php Asp Net Interoperability Rc Jaojedt
 
PHPBenelux 2011 - Seeing PHP throug a blue azure sky
PHPBenelux 2011 - Seeing PHP throug a blue azure skyPHPBenelux 2011 - Seeing PHP throug a blue azure sky
PHPBenelux 2011 - Seeing PHP throug a blue azure skyMaarten Balliauw
 
BizSpark Startup Night Windows Azure March 29, 2011
BizSpark Startup Night Windows Azure March 29, 2011BizSpark Startup Night Windows Azure March 29, 2011
BizSpark Startup Night Windows Azure March 29, 2011Spiffy
 
2013 - Back to the Future with Client/Server Development
2013 - Back to the Future with Client/Server Development 2013 - Back to the Future with Client/Server Development
2013 - Back to the Future with Client/Server Development Chris O'Connor
 
ASPNET for PHP Developers
ASPNET for PHP DevelopersASPNET for PHP Developers
ASPNET for PHP DevelopersWes Yanaga
 
Global Windows Azure Bootcamp : Cedric Derue playing with php on azure. (spon...
Global Windows Azure Bootcamp : Cedric Derue playing with php on azure. (spon...Global Windows Azure Bootcamp : Cedric Derue playing with php on azure. (spon...
Global Windows Azure Bootcamp : Cedric Derue playing with php on azure. (spon...MUG-Lyon Microsoft User Group
 
Playing with php_on_azure
Playing with php_on_azurePlaying with php_on_azure
Playing with php_on_azureCEDRIC DERUE
 
Scaling Big While Sleeping Well
Scaling Big While Sleeping WellScaling Big While Sleeping Well
Scaling Big While Sleeping WellJosh Holmes
 
SharePoint for the .NET Developer
SharePoint for the .NET DeveloperSharePoint for the .NET Developer
SharePoint for the .NET DeveloperJohn Calvert
 
Share point 2013 apps and i mean it
Share point 2013 apps and i mean itShare point 2013 apps and i mean it
Share point 2013 apps and i mean itEric Overfield
 
PHP and Zend Framework on Windows
PHP and Zend Framework on WindowsPHP and Zend Framework on Windows
PHP and Zend Framework on WindowsShahar Evron
 
2014 SharePoint Saturday Melbourne Apps or not to Apps
2014 SharePoint Saturday Melbourne Apps or not to Apps2014 SharePoint Saturday Melbourne Apps or not to Apps
2014 SharePoint Saturday Melbourne Apps or not to AppsGilles Pommier
 
Future of Serverless
Future of ServerlessFuture of Serverless
Future of ServerlessYoav Avrahami
 

Similar to PHP on Windows and on Azure (20)

PHP on Windows
PHP on WindowsPHP on Windows
PHP on Windows
 
PHP on Windows
PHP on WindowsPHP on Windows
PHP on Windows
 
Just another Wordpress weblog, but more cloudy
Just another Wordpress weblog, but more cloudyJust another Wordpress weblog, but more cloudy
Just another Wordpress weblog, but more cloudy
 
Just Another Word Press Weblog But More Cloudy
Just Another Word Press Weblog   But More CloudyJust Another Word Press Weblog   But More Cloudy
Just Another Word Press Weblog But More Cloudy
 
Running PHP In The Cloud
Running PHP In The CloudRunning PHP In The Cloud
Running PHP In The Cloud
 
Windows Azure & How to Deploy Wordress
Windows Azure & How to Deploy WordressWindows Azure & How to Deploy Wordress
Windows Azure & How to Deploy Wordress
 
Php Asp Net Interoperability Rc Jao
Php Asp Net Interoperability Rc JaoPhp Asp Net Interoperability Rc Jao
Php Asp Net Interoperability Rc Jao
 
PHPBenelux 2011 - Seeing PHP throug a blue azure sky
PHPBenelux 2011 - Seeing PHP throug a blue azure skyPHPBenelux 2011 - Seeing PHP throug a blue azure sky
PHPBenelux 2011 - Seeing PHP throug a blue azure sky
 
BizSpark Startup Night Windows Azure March 29, 2011
BizSpark Startup Night Windows Azure March 29, 2011BizSpark Startup Night Windows Azure March 29, 2011
BizSpark Startup Night Windows Azure March 29, 2011
 
2013 - Back to the Future with Client/Server Development
2013 - Back to the Future with Client/Server Development 2013 - Back to the Future with Client/Server Development
2013 - Back to the Future with Client/Server Development
 
ASPNET for PHP Developers
ASPNET for PHP DevelopersASPNET for PHP Developers
ASPNET for PHP Developers
 
Global Windows Azure Bootcamp : Cedric Derue playing with php on azure. (spon...
Global Windows Azure Bootcamp : Cedric Derue playing with php on azure. (spon...Global Windows Azure Bootcamp : Cedric Derue playing with php on azure. (spon...
Global Windows Azure Bootcamp : Cedric Derue playing with php on azure. (spon...
 
Playing with php_on_azure
Playing with php_on_azurePlaying with php_on_azure
Playing with php_on_azure
 
Scaling Big While Sleeping Well
Scaling Big While Sleeping WellScaling Big While Sleeping Well
Scaling Big While Sleeping Well
 
WSS And Share Point For Developers
WSS And Share Point For DevelopersWSS And Share Point For Developers
WSS And Share Point For Developers
 
SharePoint for the .NET Developer
SharePoint for the .NET DeveloperSharePoint for the .NET Developer
SharePoint for the .NET Developer
 
Share point 2013 apps and i mean it
Share point 2013 apps and i mean itShare point 2013 apps and i mean it
Share point 2013 apps and i mean it
 
PHP and Zend Framework on Windows
PHP and Zend Framework on WindowsPHP and Zend Framework on Windows
PHP and Zend Framework on Windows
 
2014 SharePoint Saturday Melbourne Apps or not to Apps
2014 SharePoint Saturday Melbourne Apps or not to Apps2014 SharePoint Saturday Melbourne Apps or not to Apps
2014 SharePoint Saturday Melbourne Apps or not to Apps
 
Future of Serverless
Future of ServerlessFuture of Serverless
Future of Serverless
 

More from Maarten Balliauw

Bringing nullability into existing code - dammit is not the answer.pptx
Bringing nullability into existing code - dammit is not the answer.pptxBringing nullability into existing code - dammit is not the answer.pptx
Bringing nullability into existing code - dammit is not the answer.pptxMaarten Balliauw
 
Nerd sniping myself into a rabbit hole... Streaming online audio to a Sonos s...
Nerd sniping myself into a rabbit hole... Streaming online audio to a Sonos s...Nerd sniping myself into a rabbit hole... Streaming online audio to a Sonos s...
Nerd sniping myself into a rabbit hole... Streaming online audio to a Sonos s...Maarten Balliauw
 
Building a friendly .NET SDK to connect to Space
Building a friendly .NET SDK to connect to SpaceBuilding a friendly .NET SDK to connect to Space
Building a friendly .NET SDK to connect to SpaceMaarten Balliauw
 
Microservices for building an IDE - The innards of JetBrains Rider - NDC Oslo...
Microservices for building an IDE - The innards of JetBrains Rider - NDC Oslo...Microservices for building an IDE - The innards of JetBrains Rider - NDC Oslo...
Microservices for building an IDE - The innards of JetBrains Rider - NDC Oslo...Maarten Balliauw
 
Indexing and searching NuGet.org with Azure Functions and Search - .NET fwday...
Indexing and searching NuGet.org with Azure Functions and Search - .NET fwday...Indexing and searching NuGet.org with Azure Functions and Search - .NET fwday...
Indexing and searching NuGet.org with Azure Functions and Search - .NET fwday...Maarten Balliauw
 
NDC Sydney 2019 - Microservices for building an IDE – The innards of JetBrain...
NDC Sydney 2019 - Microservices for building an IDE – The innards of JetBrain...NDC Sydney 2019 - Microservices for building an IDE – The innards of JetBrain...
NDC Sydney 2019 - Microservices for building an IDE – The innards of JetBrain...Maarten Balliauw
 
JetBrains Australia 2019 - Exploring .NET’s memory management – a trip down m...
JetBrains Australia 2019 - Exploring .NET’s memory management – a trip down m...JetBrains Australia 2019 - Exploring .NET’s memory management – a trip down m...
JetBrains Australia 2019 - Exploring .NET’s memory management – a trip down m...Maarten Balliauw
 
.NET Conf 2019 - Indexing and searching NuGet.org with Azure Functions and Se...
.NET Conf 2019 - Indexing and searching NuGet.org with Azure Functions and Se....NET Conf 2019 - Indexing and searching NuGet.org with Azure Functions and Se...
.NET Conf 2019 - Indexing and searching NuGet.org with Azure Functions and Se...Maarten Balliauw
 
CloudBurst 2019 - Indexing and searching NuGet.org with Azure Functions and S...
CloudBurst 2019 - Indexing and searching NuGet.org with Azure Functions and S...CloudBurst 2019 - Indexing and searching NuGet.org with Azure Functions and S...
CloudBurst 2019 - Indexing and searching NuGet.org with Azure Functions and S...Maarten Balliauw
 
NDC Oslo 2019 - Indexing and searching NuGet.org with Azure Functions and Search
NDC Oslo 2019 - Indexing and searching NuGet.org with Azure Functions and SearchNDC Oslo 2019 - Indexing and searching NuGet.org with Azure Functions and Search
NDC Oslo 2019 - Indexing and searching NuGet.org with Azure Functions and SearchMaarten Balliauw
 
Approaches for application request throttling - Cloud Developer Days Poland
Approaches for application request throttling - Cloud Developer Days PolandApproaches for application request throttling - Cloud Developer Days Poland
Approaches for application request throttling - Cloud Developer Days PolandMaarten Balliauw
 
Indexing and searching NuGet.org with Azure Functions and Search - Cloud Deve...
Indexing and searching NuGet.org with Azure Functions and Search - Cloud Deve...Indexing and searching NuGet.org with Azure Functions and Search - Cloud Deve...
Indexing and searching NuGet.org with Azure Functions and Search - Cloud Deve...Maarten Balliauw
 
Approaches for application request throttling - dotNetCologne
Approaches for application request throttling - dotNetCologneApproaches for application request throttling - dotNetCologne
Approaches for application request throttling - dotNetCologneMaarten Balliauw
 
CodeStock - Exploring .NET memory management - a trip down memory lane
CodeStock - Exploring .NET memory management - a trip down memory laneCodeStock - Exploring .NET memory management - a trip down memory lane
CodeStock - Exploring .NET memory management - a trip down memory laneMaarten Balliauw
 
ConFoo Montreal - Microservices for building an IDE - The innards of JetBrain...
ConFoo Montreal - Microservices for building an IDE - The innards of JetBrain...ConFoo Montreal - Microservices for building an IDE - The innards of JetBrain...
ConFoo Montreal - Microservices for building an IDE - The innards of JetBrain...Maarten Balliauw
 
ConFoo Montreal - Approaches for application request throttling
ConFoo Montreal - Approaches for application request throttlingConFoo Montreal - Approaches for application request throttling
ConFoo Montreal - Approaches for application request throttlingMaarten Balliauw
 
Microservices for building an IDE – The innards of JetBrains Rider - TechDays...
Microservices for building an IDE – The innards of JetBrains Rider - TechDays...Microservices for building an IDE – The innards of JetBrains Rider - TechDays...
Microservices for building an IDE – The innards of JetBrains Rider - TechDays...Maarten Balliauw
 
JetBrains Day Seoul - Exploring .NET’s memory management – a trip down memory...
JetBrains Day Seoul - Exploring .NET’s memory management – a trip down memory...JetBrains Day Seoul - Exploring .NET’s memory management – a trip down memory...
JetBrains Day Seoul - Exploring .NET’s memory management – a trip down memory...Maarten Balliauw
 
DotNetFest - Let’s refresh our memory! Memory management in .NET
DotNetFest - Let’s refresh our memory! Memory management in .NETDotNetFest - Let’s refresh our memory! Memory management in .NET
DotNetFest - Let’s refresh our memory! Memory management in .NETMaarten Balliauw
 
VISUG - Approaches for application request throttling
VISUG - Approaches for application request throttlingVISUG - Approaches for application request throttling
VISUG - Approaches for application request throttlingMaarten Balliauw
 

More from Maarten Balliauw (20)

Bringing nullability into existing code - dammit is not the answer.pptx
Bringing nullability into existing code - dammit is not the answer.pptxBringing nullability into existing code - dammit is not the answer.pptx
Bringing nullability into existing code - dammit is not the answer.pptx
 
Nerd sniping myself into a rabbit hole... Streaming online audio to a Sonos s...
Nerd sniping myself into a rabbit hole... Streaming online audio to a Sonos s...Nerd sniping myself into a rabbit hole... Streaming online audio to a Sonos s...
Nerd sniping myself into a rabbit hole... Streaming online audio to a Sonos s...
 
Building a friendly .NET SDK to connect to Space
Building a friendly .NET SDK to connect to SpaceBuilding a friendly .NET SDK to connect to Space
Building a friendly .NET SDK to connect to Space
 
Microservices for building an IDE - The innards of JetBrains Rider - NDC Oslo...
Microservices for building an IDE - The innards of JetBrains Rider - NDC Oslo...Microservices for building an IDE - The innards of JetBrains Rider - NDC Oslo...
Microservices for building an IDE - The innards of JetBrains Rider - NDC Oslo...
 
Indexing and searching NuGet.org with Azure Functions and Search - .NET fwday...
Indexing and searching NuGet.org with Azure Functions and Search - .NET fwday...Indexing and searching NuGet.org with Azure Functions and Search - .NET fwday...
Indexing and searching NuGet.org with Azure Functions and Search - .NET fwday...
 
NDC Sydney 2019 - Microservices for building an IDE – The innards of JetBrain...
NDC Sydney 2019 - Microservices for building an IDE – The innards of JetBrain...NDC Sydney 2019 - Microservices for building an IDE – The innards of JetBrain...
NDC Sydney 2019 - Microservices for building an IDE – The innards of JetBrain...
 
JetBrains Australia 2019 - Exploring .NET’s memory management – a trip down m...
JetBrains Australia 2019 - Exploring .NET’s memory management – a trip down m...JetBrains Australia 2019 - Exploring .NET’s memory management – a trip down m...
JetBrains Australia 2019 - Exploring .NET’s memory management – a trip down m...
 
.NET Conf 2019 - Indexing and searching NuGet.org with Azure Functions and Se...
.NET Conf 2019 - Indexing and searching NuGet.org with Azure Functions and Se....NET Conf 2019 - Indexing and searching NuGet.org with Azure Functions and Se...
.NET Conf 2019 - Indexing and searching NuGet.org with Azure Functions and Se...
 
CloudBurst 2019 - Indexing and searching NuGet.org with Azure Functions and S...
CloudBurst 2019 - Indexing and searching NuGet.org with Azure Functions and S...CloudBurst 2019 - Indexing and searching NuGet.org with Azure Functions and S...
CloudBurst 2019 - Indexing and searching NuGet.org with Azure Functions and S...
 
NDC Oslo 2019 - Indexing and searching NuGet.org with Azure Functions and Search
NDC Oslo 2019 - Indexing and searching NuGet.org with Azure Functions and SearchNDC Oslo 2019 - Indexing and searching NuGet.org with Azure Functions and Search
NDC Oslo 2019 - Indexing and searching NuGet.org with Azure Functions and Search
 
Approaches for application request throttling - Cloud Developer Days Poland
Approaches for application request throttling - Cloud Developer Days PolandApproaches for application request throttling - Cloud Developer Days Poland
Approaches for application request throttling - Cloud Developer Days Poland
 
Indexing and searching NuGet.org with Azure Functions and Search - Cloud Deve...
Indexing and searching NuGet.org with Azure Functions and Search - Cloud Deve...Indexing and searching NuGet.org with Azure Functions and Search - Cloud Deve...
Indexing and searching NuGet.org with Azure Functions and Search - Cloud Deve...
 
Approaches for application request throttling - dotNetCologne
Approaches for application request throttling - dotNetCologneApproaches for application request throttling - dotNetCologne
Approaches for application request throttling - dotNetCologne
 
CodeStock - Exploring .NET memory management - a trip down memory lane
CodeStock - Exploring .NET memory management - a trip down memory laneCodeStock - Exploring .NET memory management - a trip down memory lane
CodeStock - Exploring .NET memory management - a trip down memory lane
 
ConFoo Montreal - Microservices for building an IDE - The innards of JetBrain...
ConFoo Montreal - Microservices for building an IDE - The innards of JetBrain...ConFoo Montreal - Microservices for building an IDE - The innards of JetBrain...
ConFoo Montreal - Microservices for building an IDE - The innards of JetBrain...
 
ConFoo Montreal - Approaches for application request throttling
ConFoo Montreal - Approaches for application request throttlingConFoo Montreal - Approaches for application request throttling
ConFoo Montreal - Approaches for application request throttling
 
Microservices for building an IDE – The innards of JetBrains Rider - TechDays...
Microservices for building an IDE – The innards of JetBrains Rider - TechDays...Microservices for building an IDE – The innards of JetBrains Rider - TechDays...
Microservices for building an IDE – The innards of JetBrains Rider - TechDays...
 
JetBrains Day Seoul - Exploring .NET’s memory management – a trip down memory...
JetBrains Day Seoul - Exploring .NET’s memory management – a trip down memory...JetBrains Day Seoul - Exploring .NET’s memory management – a trip down memory...
JetBrains Day Seoul - Exploring .NET’s memory management – a trip down memory...
 
DotNetFest - Let’s refresh our memory! Memory management in .NET
DotNetFest - Let’s refresh our memory! Memory management in .NETDotNetFest - Let’s refresh our memory! Memory management in .NET
DotNetFest - Let’s refresh our memory! Memory management in .NET
 
VISUG - Approaches for application request throttling
VISUG - Approaches for application request throttlingVISUG - Approaches for application request throttling
VISUG - Approaches for application request throttling
 

Recently uploaded

SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 

Recently uploaded (20)

SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 

PHP on Windows and on Azure

  • 1.
  • 2. PHPon Windowsand on Windows Azure Maarten Balliauw – RealDolmenE-mail: maarten.balliauw@realdolmen.comBlog: http://blog.maartenballiauw.beTwitter: @maartenballiauw
  • 3. Who am I? Maarten Balliauw Antwerp, Belgium www.realdolmen.com Focus on web ASP.NET, ASP.NET MVC, PHP, Azure, VSTS, … MVP ASP.NET Interested in interoperability PHPExcel, PHPLinq, Windows Azure SDK for PHP, ... http://blog.maartenballiauw.be http://twitter.com/maartenballiauw
  • 4. Agenda Why PHP matters… PHP on Windows PHP on Windows Azure
  • 5. Before we start… Much information! Slides decorated with topic: PHP on Windows PHP on Windows Azure
  • 6. Why PHP matters… Why is Microsoft investing in PHP efforts?
  • 7. Simple reason… Web applications Wordpress Drupal Joomla phpBB MediaWiki SugarCRM Gallery2 Commercial entities Yahoo! Flickr Digg Facebook YouTube Wikipedia  Hard to ignore!
  • 8.
  • 9. PHP on Windows If PHP matters, better make it a first-class citizen…
  • 10. Agenda Microsoft and the PHP Core Other initiatives SDK’s Tooling
  • 11. Microsoft and the PHP Core Before Now
  • 13. PHP 5.3 on Windows Is the most significant update to PHP on Windows! All libraries updated to latest versions (in some cases newer versions that used on Linux) Re-write of the build system from scratch Top PHP Windows community programmer working for Microsoft (Pierre Joye) Build with VS 2008 Available in 32 and 64 bit version Created windows.php.net 99% of all POSIX calls changed to native Windows calls
  • 14. By the numbers: Running PHPBench looped 5x Both computers are a HP 8 core (2 procs x Quad core) 16gb ram. Linux (Centos 5.2) vs. Windows Server 2008 x86 NOTE: phpbench onlytests internal PHP engineperformance. It doesnot do IO of any kind.
  • 15. Core is not everything… Other initiatives Web Platform Installer FastCGI on IIS Wincache extension SQL Server driver for PHP SDK’s (a lot!) Tooling
  • 16. Microsoft Web Platform Installer “Yum for Windows”?
  • 17. Easy installation of YOUR environment Easy installer providing Platform installation (IIS, extra modules, configuration, …) Both ASP.NET and PHP Application installation Both ASP.NET and PHP Publish your app through WebPI http://microsoft.com/web
  • 18. Demo Web Platform Installer
  • 19. FastCGI on IIS How and where will my application run?
  • 20. PHP on Windows – History IIS support has been there for a long time Apache runs on Windows as well But… IIS gives best performance on Windows Unfortunately the choice was always between stability and performance…
  • 21. Allow me to explain…
  • 22. And along came improvement!
  • 25. IIS execution pipeline Since your PHP app is part of the IIS execution pipeline… …you can use IIS URL rewriting …you can use IIS as a load balancer (ARR) www.vipriva.com …you can use any .NET HttpModule out there ASP.NET membership / authentication Output caching …
  • 26. Demo Application A very simple blog
  • 27. Application description Simple blog engine 1 table: Posts Id (PK) Slug Title Body Author PubDate Caching Pretty URLs Windows Authentication
  • 28. Setting up the SQL server database
  • 29. WinCache extension Making it even faster…
  • 30. Windows Cache Extension (“WinCache”) PHP module for 5.2 and 5.3 IIS specific PHP accelerator So only works in IIS! No code modifications needed in your application PHP functions to obtain information about the cache status http://www.iis.net/download/WinCacheForPhp
  • 31. Cache layers Bytecode cache Caches compiled PHP scripts Script cache Cache script sources in memory to reduce I/O access and UNC file share access Relative file path cache Caches relative file path Session cache Sessions stored in shared memory
  • 33. SQL Server Driver for PHP Data access should be fast as well!
  • 34. SQL Server Driver for PHP PHP extension for Windows So only works on Windows! Reliable, scalable and fast integration with SQL Server for PHP Relies on the Microsoft SQL Server Native Client to communicate with SQL Server.
  • 35. PDO support SQL Server Driver for PHP v2.0 Support for PHP Data Objects (PDO) Better UTF-8 support Example: Drupal 7 on SQL Serverhttp://www.commerceguys.com/about/news/drupal-7-sql-server-preview
  • 36. Here are your options!
  • 37. Using the SQL Server Driver for PHP Connecting $connection = new PDO('sqlsrv:server=.QLEXPRESS;database=blog');
  • 38. Using the SQL Server Driver for PHP Querying class Post { public $Id; // ...} $posts = array(); $query = 'SELECT * FROM posts ORDER BY PubDate DESC'; $statement = $connection->query($query); while ( $row = $statement->fetchObject('Post') ) { $posts[] = $row; }
  • 39. Demo SQL Server Driver for PHP
  • 40. SDK’s What else is out there?
  • 41. Microsoft and PHP = LOTS of goodies Some highlights… SQL Server Reporting Services SDK for PHP OData SDK for PHP Windows Azure Tools for Eclipse Windows Azure SDK for PHP AppFabric SDK for PHP Windows Azure Command-Line Tools for PHP Eclipse Tools for Silverlight Information Cards for PHP Internet Explorer Webslices and Accelerators for PHP PHP and Silverlight SQL CRUD Application Wizard for PHP Toolkit for PHP and Bing Maps Overview: http://www.interoperabilitybridges.com/
  • 42. SQL Server Reporting Services SDK for PHP SSRS? Reporting tool in SQL Server Very powerful! Various output formats Can be linked to MySQL, PostgreSQL, … API to interoperate with SQL Server Reporting Services List available reports within a PHP applications, Provide custom parameters from a PHP web form, Manage the rendering of the reports within a PHP application http://ssrsphp.codeplex.com
  • 43. OData SDK for PHP OData? Open Data Protocol Unlock your data and free it from silos that exist in applications today Builds on HTTP, AtomPub and JSON RESTful interface Way data is delivered in MS CN “Dallas” API to OData Generate proxy classes to OData feeds CRUD on OData feeds http://odataphp.codeplex.com/
  • 44. OData SDK for PHP /* connect to the OData service */ $svc = new NorthwindEntities(NORTHWIND_SERVICE_URL); /* get the list of Customers in the USA +the list of Orders */ $query = $svc->Customers() ->filter("Country eq 'USA'") ->Expand('Orders'); $customerResponse = $query->Execute(); /* get only CustomerID and CustomerName */ $query = $svc->Customers() ->filter("Country eq 'USA'") ->Select('CustomerID, CustomerName'); $customerResponse = $query->Execute(); /* create a new customer */ $customer = Customers::CreateCustomers('channel9', 'CHAN9'); $proxy->AddToCustomers($customer); /* commit the change on the server */ $proxy->SaveChanges();
  • 45. Windows Azure Microsoft’s Cloud Computing offering Web/worker role (= virtual machine) Blobs, tables, queues, drives (= storage) SQL Azure (= +/- SQL Server) AppFabric (= access control & firewall punching) “Dallas” (= Data-as-a-Service) Working with PHP Windows Azure Tools for Eclipse Windows Azure SDK for PHP AppFabric SDK for PHP Windows Azure Command-Line Tools for PHP Zend Framework contribution More on this: later today!
  • 46. Tooling How do I use all this?
  • 48. Windows Azure Tools for Eclipse
  • 51. What’s in the cloud? DEMO Tooling
  • 52. Summary PHP on Windows is a priority for Microsoft Full range of PHP support Products and Services Attract more customers to the MS platform through world-class support and resources Microsoft wants you to succeed
  • 53.
  • 54. PHP on Windows Azure Cloudy with a chance of PHP
  • 55.
  • 56. Agenda Windows Azure? Windows Azure and PHP SDK’s Tooling
  • 57. What’s in the cloud? Windows Azure
  • 58. Definition of cloud (NIST) On-demand self service Standardized access Location independant resource pooling Rapid elasticity Pay per use
  • 59.
  • 67.
  • 68. The Windows Azure Platform Windows Azure SQL Azure Windows Azure platform AppFabric Microsoft Codename “Dallas” Microsoft Codename “Sydney” Developer tools
  • 70. Windows Azure Flexible application hosting Lights-out service management Provide code & service model, hit ENTER Storage at massive scale Blobs, tables, queues Compute Storage Management There’s an SDK for this: http://phpazure.codeplex.com
  • 71. Storage options Blobs, tables, queues Windows Azure Drive (a.k.a. Xdrive) Virtual NTFS volume that can be mounted .vhd format Use existing NTFS API’s Easier migration Stored on blob storage provides quick mount/unmount in other VM
  • 72. SQL Azure Relational database as a service Highly available, automatically maintained Extension of the SQL Server Data Platform Business Analytics Reporting Data Sync Database There’s a driver for this: http://sqlsrvphp.codeplex.com
  • 73. SQL Azure Relational database, provided as a service Highly symmetrical development and tooling experience (use TDS protocol and T-SQL) Highly scaled out, on commodity hardware Built on the SQL Server technology foundation Beyond “hosted database” High availability, DB provisioning, and DB management are provided by the service Pay for what you use
  • 74. Windows Azure AppFabric Secure connections between services Across organizational boundaries Claims-based access control ServiceBus AccessControl There’s an SDK for this: http://dotnetservicesphp.codeplex.com/
  • 76. Microsoft Codename “Dallas” Content brokerage and discovery platform Available as a CTP at commercial launch Microsoft Codename “Dallas”Information Services
  • 77. Microsoft Codename “Sydney” - Connectivity WINDOWS AZURE PLATFORM ENTERPRISE Data Service Service Bus Access Control Service Code Name “Project Sydney”
  • 78. North America Region Asia Pacific Region Europe Region N. Europe Sub-region N. Central – US Sub-region E. Asia Sub-region W. Europe Sub-region S. Central - US Sub-region S.E. Asia Sub-region
  • 79.
  • 80.
  • 81.
  • 82.
  • 83. What’s in the cloud? Deploying an application
  • 84. Service Deployment Service Service Service Model Your Service DNS LB Web Portal (API) DNS config LB Fabric Controller
  • 85. Service Scaling Your Service Service Service DNS Service Service Service Service Service LB Service Web Portal (API) LB Model Fabric Controller
  • 86. Service Monitoring & Recovery Your Service Service DNS Service Service Service LB Web Portal (API) ! LB Model Fabric Controller
  • 87. What’s in the cloud? Using PHP with Windows Azure
  • 89. Using PHP with Windows Azure It’s all about… Running PHP Code in Windows Azure Eclipse Tooling Build, Test, Deploy PHP Projects Create New or Use Existing PHP Projects Scaling PHP Apps Using Cloud Storage from PHP Using Windows Azure Storage Using SQL Azure
  • 90. Running PHP in Windows Azure How to Do It Host in Web role (like .NET) Supply PHP runtime Point to runtime via FastCGIconfiguration in Web.config Web.roleConfig Eclipse Tooling athttp://windowsazure4e.org does the above for you Command-line tools at http://azurephptools.codeplex.com PHP Web Role Instance 1 VIP Load Balancer PHP Web Role Instance 2
  • 91. Developer tools Development Use your favourite editor Local debugging Windows with IIS 7.x Visual Studio Windows Azure tools for Eclipse Packaging Windows Azure SDK Deployment Any browser
  • 92. PHP + Cloud Storage Windows Azure Storage On-Premise VIP PHP Web Role Load Balancer PHP App SQL Azure Windows Azure Platform
  • 95. Windows Azure SDK for PHP A PHP programming model for Windows Azure Storage
  • 96. PHP with Windows Azure Storage Windows Azure SDK for PHP at http://phpazure.codeplex.com PHP programming model for Windows Azure Storage Features PHP classes for Blobs, Tables & Queues Store PHP sessions in Table Storage File system wrapper for Blob Storage
  • 97. Windows Azure SDK for PHP Overview Enables PHP developers to take advantage of the Microsoft Cloud Services Platform  – Windows Azure.   Open source project being contributed to Zend Framework (http://framework.zend.com) Features PHP classes for Windows Azure Blobs, Tables & Queues (for CRUD operations) Helper Classes for HTTP transport, AuhN/AuthZ, REST & Error Management Manageability, Instrumentation & Logging support Project site: http://phpazure.codeplex.com/ Logical architecture Your PHP application REST Compute Storage Manage Deployment scenarios PHP Runtime Any internet connected Server PHP Runtime REST REST
  • 98. Blob Container Entities Account Table http://<account>.blob.core.windows.net/<container> Messages Windows Azure Storage Concepts http://<account>.table.core.windows.net/<table> Queue http://<account>.queue.core.windows.net/<queue>
  • 99. Windows Azure Blobs Unstructured data Scale massively At least 3 instances, 5 in optimal situation Can be used as CDN Can be mapped using a custom domain
  • 100. Tools for connecting to blob storage CloudBerryLab Explorerhttp://www.cloudberrylab.com Azure Storage Explorerhttp://azurestorageexplorer.codeplex.com/ Onlinehttp://myazurestorage.com / ftp://ftp.cloudapp.net Windows Azure tooling for Eclipse
  • 101. Blobs Sample $blobStorage= new Microsoft_WindowsAzure_Storage_Blob(); // Create if (!$blobStorage->containerExists($containerName)) { $blobStorage->createContainer($containerName); $blobStorage->setContainerAcl($containerName, Microsoft_WindowsAzure_Storage_Blob::ACL_PUBLIC); } // Store $blob = $blobStorage->putBlob($containerName, $blobName, $localFilename, $metadata); /* @var $blob Microsoft_WindowsAzure_Storage_BlobInstance */
  • 102. Blobs Sample Cont… // Copy $result = $blobStorage->copyBlob( $containerName, $blobName, $containerName, $blob2Name); // Retrieve $tempStore= azure_getlocalresourcepath('tempstore'); $tempPath= $tempStore. '' . $imageId; $blobStorage->getBlob($containerName, $blobName, $tempPath); // Delete $result = $blobStorage->deleteBlob($containerName, $blobName); $result = $blobStorage->deleteContainer($containerName); http://phpazurecontrib.codeplex.com
  • 103. Blob Stream Wrapper $blobStorage= new Microsoft_WindowsAzure_Storage_Blob(); // Register: $blobStorage->registerStreamWrapper(); // registers azure:// // or $blobStorage->registerStreamWrapper('blob://'); // use blob:// // Use $fp= fopen('azure://mycontainer/myfile.txt', 'r'); // ... fclose($fp);
  • 104. Windows Azure Drive (a.k.a. Xdrive) Virtual NTFS volume that can be mounted .vhd format Use existing NTFS API’s Easier migration Stored on blob storage provides quick mount/unmount in other VM http://phpazurecontrib.codeplex.com
  • 105. Queue Workflow Concepts Windows Azure Queue Provides Guarantee delivery (two-step consumption) Worker Dequeues Message and mark it as Invisible Worker Deletes Message when finished processing it If Worker role crashes, message becomes visible for another Worker to process Doesn’t guarantee “only once” delivery Doesn’t guarantee ordering Best effort FIFO Worker Role Web Role Input Queue (Work Items) Worker Role Azure Queue Web Role Worker Role Web Role Worker Role
  • 106. Azure Queues RemoveMessage GetMessage (Timeout) Worker Role PutMessage Queue Msg 1 Msg 2 Msg 2 Msg 1 Web Role Worker Role Worker Role Msg 3 Msg 4 Msg 2
  • 107. Loosely Coupled Work with Queues Worker-Queue Model Load work in a queue Many workers consume the queue Input Queue (Work Items) Azure Queue Worker Role Web Role Worker Role Web Role Worker Role Web Role Worker Role
  • 108. Queues $queueClient= new Microsoft_WindowsAzure_Storage_Queue(); // Create $result = $queueClient->createQueue('imageQueue'); // Delete $queueClient->deleteQueue('imageQueue'); // Add message $queueClient->putMessage('imageQueue', $message, $ttl); // Retrieve Messages $messages = $queueClient->getMessages('imageQueue', 10); foreach($messages as $message) { // Do work here... $queueClient->deleteMessage('imageQueue', $message); }
  • 109. Windows Azure Data Storage – Tables (Terms Part 1) Table Contains a set of entities. Entity (Row) Basic data items stored in a table. Property (Column) Single value in an entity. RowKey Unique ID of the entity within a partition Timestamp Time it was created
  • 110. Windows Azure Data Storage – Tables (Terms Part 2) Partition Entities in a table with the same partition key PartitionKey Segments entities in to partitions to automatically distribute the table’s entities over many storage nodes. Sort Order There is a single index provided, where all entities in a table are sorted by PartitionKey and then RowKey
  • 111. Key Example – Blog Posts Partition 1 Partition 2 Getting all of dunnry’s blog posts is fast Single partition Getting all posts after 2008-03-27 is slow Traverse all partitions
  • 112. Table Sample $tableStorage= new Microsoft_WindowsAzure_Storage_Table( 'table.core.windows.net', 'myaccount', 'myauthkey'); // Create $result = $tableStorage->createTable($tableName); // List $result = $tableStorage->listTables(); foreach($result as $table) { echo 'Table name is: ' . $table->Name . ""; } // Delete $tableStorage->deleteTable($tableName);
  • 113. Tables with Entities // Structured entity class ImageEntityextends Microsoft_WindowsAzure_Storage_TableEntity { /** * @azure filename */ public $filename; /** * @azure size Edm.Int64 */ public $size; } // Unstructured entity // Microsoft_WindowsAzure_Storage_DynamicTableEntity
  • 114. Tables with Entities Cont… // Insert $image = new ImageEntity($partitionKey, $rowKey); $image->filename = $_FILES['imageUpload']['name']; $image->size = $_FILES['imageUpload']['size']; $image = $tableStorageClient->insertEntity($tableName, $image); // Retrieve $image = $tableStorage->retrieveEntityById($tableName, $partitionKey, $rowKey, 'ImageEntity'); // Update $image->filename = 'newname.jpg'; $result = $tableStorage->updateEntity($tableName, $image); // Delete $result = $tableStorage->deleteEntity($tableName, $image);
  • 115. Table Queries // Filter condition $select = "filesizegt 1024 and PartitionKeyeq '$partitionKey'"; // Or fluent interface $select = $tableStorage->select()->from($tableName) ->where('filesizegt 1024') ->andWhere('PartitionKeyeq ?', $partitionKey); // Run query $images = $tableStorage->storageClient->retrieveEntities( 'testtable', $select, 'ImageEntity' ); foreach($images as $image) { echo 'Name: ' . $image->filename . ""; }
  • 116. Batching Operations // Start batch $batch = $tableStorage->startBatch(); // Insert multiple $images = generateEntities(); foreach($images as $image) { $tableStorage->insertEntity($tableName, $image); } // Commit $batch->commit();
  • 117. Table session handler $sessionHandler = new Microsoft_WindowsAzure_SessionHandler($tableStorage); $sessionHandler->register(); session_start(); if (!isset($_SESSION['start'])) { $_SESSION['start'] = time(); }
  • 118. SQL Azure A relational database for the cloud
  • 119. SQL Azure and Windows Azure Table Comparison SQL Azure Tables Fully structured Strongly typed Relational(RDBMS) Highly scalable Windows Azure Tables Semi-structured Loosely typed Non-Relational(Not RDBMS) Massively scalable
  • 120. SQL Azure Features Supported Tables, Indexes, Views Stored Procedures Triggers Constraints Table Variables Temp Tables (#Name) Not supported Physical Server Access Catalog DDL Common Language Runtime Service Broker Reporting Services Analysis Services Distributed Transactions and Queries
  • 121. SQL AzureDeployment Web Portal (API) DB Script SQL Azure TDS
  • 122. SQL AzureAccessing databases Web Portal (API) Your App SQL Azure TDS Change Connection String
  • 123. Database Replicas Single Database Multiple Replicas Replica 1 Single Primary Replica 2 DB Replica 3
  • 124. SQL AzureDatabase Monitoring & Recovery Web Portal (API) ! Your App SQL Azure TDS
  • 125. SQL Azure Server Creation
  • 126.
  • 127.
  • 128. Migrating schema and data SQL Azure Migration Wizardhttp://sqlazuremw.codeplex.com SQL Azure Data Sync Tool for SQL Serverhttp://www.microsoft.com/windowsazure/developers/sqlazure/datasync/ SQL Server Management Studio 2008 R2 November Community Technology Preview
  • 129. PHP with SQL Azure SQL Server Driver for PHP at http://sqlsrvphp.codeplex.com/ Supports PHP access to SQL Azure Features Choose between SQL Server and SQL Azure by changing connection string Use from on-premise apps or in Windows Azure
  • 130. PHP with AppFabric AppFabric SDK for PHP developers athttp://dotnetservicesphp.codeplex.com/ Supports PHP on service bus and access control Features Expose on-premise apps on an external endpoint without opening firewall Pub/sub scenario’s …
  • 131. Solution accelerators MySQL http://code.msdn.microsoft.com/winazuremysqlphp Memcached http://code.msdn.microsoft.com/winazurememcached MediaWiki http://code.msdn.microsoft.com/winazuremediawiki Tomcat http://code.msdn.microsoft.com/winazuretomcat
  • 132. What’s in the cloud? Demo Application ImageCloud
  • 133. Demo Application Eclipse Tools for Windows Azure Windows Azure SDK for PHP And a demo app!
  • 134. ImageCloud Upload your images! Free, unlimited storage! Images stored in multiple formats! Delivered trough a high-speedcontent-delivery network! Repurposed adaptive functionality! Empowered best-of-breed methodology! Virtualized granular service! Integrated cloud-based deliverable! ImageCloud
  • 135. ImageCloud Architecture WebRole Worker Role Computation Services End Users ImageCloud Table Storage Blob Storage Queue Service Storage Services
  • 136. What’s in the cloud? Windows Azure Companion What is THAT again?
  • 137. Windows Azure Companion “WebPI for Windows Azure” Install applications on Windows Azure instance Based on ATOM feed
  • 139. What’s in the cloud? DemO Windows Azure Companion
  • 140. When the box is gray, you’re okay. When the box is blue a bill is due.
  • 141. What’s in the cloud? Getting started
  • 142. 3 simple steps… Get an account Get the tools Play, learn, develop, deploy
  • 143. Get an account You need a Windows Live ID (WLID) Create one on https://signup.live.com Create an account on Microsoft Online Services Portal (MOCP) and buy Azure Subscription http://mocp.microsoftonline.com There is an Introductory Special (= Limited Amount at No Charge) Create your Azure Project https://windows.azure.com
  • 144.
  • 146. 1 GB SQL Azure
  • 147. 2 service bus connections
  • 148. .5 GB data transfer
  • 149.
  • 150. What’s in the cloud? Resources
  • 151. Resources Windows Azurehttp://www.azure.com Windows Azure SDK for PHPhttp://phpazure.codeplex.com SQL Server Driver for PHPhttp://sqlsrvphp.codeplex.com AppFabric SDK for PHP developershttp://dotnetservicesphp.codeplex.com Command-line toolshttp://azurephptools.codeplex.com PDChttp://microsoftpdc.com PHP Architect December 2009 issuehttp://www.phparch.com Windows Azure Companionhttp://code.msdn.microsoft.com/azurecompanion InteroperabilityBridges.comhttp://interoperabilitybridges.com Web Platform Installerhttp://microsoft.com/web My bloghttp://blog.maartenballiauw.be/category/Azure.aspx RealDolmen blogs is running on Azure!http://www.realdolmenblogs.com
  • 152.
  • 154. Thankyou … … foryourattention ! … for fillingout f Maarten Balliauwhttp://blog.maartenballiauw.be http://bit.ly/aQuc56

Editor's Notes

  1. CREATE TABLE [dbo].[posts]( [Id] [numeric](18, 0) IDENTITY(1,1) NOT NULL, [Slug] [nvarchar](255) NOT NULL, [Title] [nvarchar](255) NOT NULL, [Body] [text] NOT NULL, [Author] [nvarchar](255) NOT NULL, [PubDate] [datetime] NOT NULL, CONSTRAINT [PK_posts] PRIMARY KEY CLUSTERED ( [Id] ASC)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
  2. In a classic IT model, there are a lot of inefficiencies.Barrier for innovationsFor every solution to be deployed, an investment needs to be done. For example, 2 servers are bought and configured by corporate IT.These investments are repeated: whenever capacity is estimated too low, a new investment is done. For example, 2 extra servers are bought and configured by corporate IT every quarter.Waste of capacitiesAt a given moment, we have 4 servers. But the actual load could have been handled with only 1. This means we invested 400% too much!Under-supply of capacitiesAt a given moment, we get some press coverage and the actual load increases more than estimated. Imagine we have 1 server short. This may be no problem, but if our checkout process is running on this machine, we have the # of users that can be handled by 1 server that can not make a purchase. Which means we lose a lot of possible income!Fixed-cost of IT-capacitiesWhen the load drops for a period in time, and only 1 server is actually required, we still have to maintain and support all the other servers. This comes at a cost, that should not be made at this time: we are not using it!In a cloud model, the actual capacity can be kept closer to the actual load, with less over-capacity. No investment needs to be done: only pay a small amount at th start, pay more when your solution is used more. Whenever over-capacity exists, scale the solution down to less resources and see immediate impact on costs.IT is no longer treated as an investment, rather as a cost. We don’t invest in power generators, rather pay our electricity by use. This paradigm can become true for IT by using a cloud model.IT can become a business enabler!Ideas can be tried without a large investment upfront, reducing risks and costs. Imagine an application try-out in an insurance company that wants to test if a cost simulation on their site is used and attracts customers &amp; revenue. In a classic IT model, an investment should be made. In a cloud model, we are having a fraction of the costs for trying this out. If it succeeds and attracts revenue, we can easily cope with higher usage costs. If the simulation tool does not attract revenue, we can take it down and our cost disappears, without having invested upfront.Cloud computing, in short, means capacity / resources in terms of networking, data, storage or compute power are provided in an on-demand model: go to a portal and resources are there fast. This is unlike traditional IT where a whole process should be followed. Being agile means you can respond to the market faster!Economics are different: there’s a pay-per-use model, upfront investments are no longer needed.Cloud != virtualization like a lot of vendors tell! Cloud is an addition to virtualization: it allows you to transparently scale the demand in resources across virtual machines, without having to know on which machine you are working. This increases usage and effectiveness of virtualization.Cloud services have inherent resilience to hardware or software failures due to redundant/self-healing service models combined with deep integration between ops &amp; development/test providing a lights out experience. Cloud is the future: most vendors are projecting a future image of devices (PC’s, mobiles, TV’s, …), interconnected through the Internet and using hosted services. To achieve best cost-effectiveness, these hosted services are in a cloud, whether a public cloud or a private cloud.Cloud computing will drive competition in the future due to cost-efficiency.
  3. Datacenter pairing!
  4. Take your application to the next level
  5. http://eric.blob.core.windows.net/music/rock/rush/xanadu.mp3Blobs – Provide a simple interface for storing named files along with metadata for the fileTables – Provide structured storage. A Table is a set of entities, which contain a set of propertiesQueues – Provide reliable storage and delivery of messages for an applicationTab
  6. Harvesting!
  7. Use queues as a way of communicating w/ the backend worker rolesWRs call getmessage and pass timeoutTimeout value is importantExpiration time is important; message is marked in the queue as invisible; for duration of timeout it’s invisibleWhen we’re done processing, we call a message to remove the message through a deleteTh reason we do this is imagine we have a second worker role; if something goes wrong, once the timeout expires, the message becomes visible, and the next person to do a get message will get the message
  8. The PartitionKey combined with the RowKey uniquely identifies an entity in a table.
  9. 11:53Getting the all of dunnry’s post it fast because we’re selecting the entities by a partition keyGetting all of the posts after a certain is slow because we may have to traverse across multiple servers because we’re selecting entities that span partition keysA query without the partition key is really a scan
  10. We have included this feature comparison table in anticipation of your likely questions about differences between using a relational database table as you may be currently doing with your SQL Server databases and the new Windows Azure Tables included in Windows Azure.
  11. As I stated earlier, SQL Azure is based on SQL Server 2008. At this time it is only a subset of the features of the server product.My intention here is to convey the high level features that are supported and the ones that are not.SQL Azure will support most of the things we need… Tables, Index, Views, Stored Procedures, Triggers, and Constraints… in my book… that’s all the functionality that I need for most of my applications.There are some other adjunct technologies that ship as part of SQL Server 2008 such as SQL Reporting Services and Analysis Services which are not supported. The Service Broker is also not supported.
  12. So let’s assume that we have designed our relational database with local developer and data modeling tools.We can begin our story then by assuming that we want to get our database deployed to the cloud.There are some tools that will expedite this process which I will show you later, but for now lets assume that we have scripted our database schema. We apply this script to SQL Azure which speaks native TDS.If you created your database through the SQL Azure Portal, then SQL Azure will have created one master database and three replicas of that database. If you create your database with the script the same will be true.These replicas are stored in different database centers from the master to provide redundancy and protection against geographical catastrophe.
  13. Configuring our application to use SQL Azure storage instead of SQL Server is simply a matter of modifying the connection string in our application’s configuration file.When our application requests data, ADO.NET speaks to the TDS which directs our queries to the master database server. The master database server performs our query and returns the results to our application.
  14. From our application’s point of view, there is only one SQL Azure database.As we make updates to our database, those updates are replicated to other copies stored in other data centers so that in the event that our database fails for any reason, the other databases will be standing by ready to take its place.
  15. But what if that master database server fails for some reason?TDS is receives notification of the database failure and automatically redirects the call to the replica!The Azure Cloud Fabric is self-healing… and the details are outside the scope of this presentation; however, the fabric will get busy repairing itself like drones on a Borg mother ship… essentially with the objective of keeping three replicas online at a time.
  16. I will demonstrate creating a SQL Azure account in session 3 where I will walk you through the entire process.For now I simply want to give you some background information to prepare you for our first demonstration.When we create our SQL Azure database server, we’ll be prompted for an Administrator’s name and a password.This username and password will be the granted a system administrator role that is similar to the “sa” account on a local SQL Server 2008 box. The account has permission to create and drop databases and database ownership authority in any databases that you create with this account.
  17. After creating your SQL Azure database server, you will want to grant appropriate access through the SQL Azure firewall.SQL Azure provides a very simple and easy to maintain firewall. The firewall is so easy to use that it’s only going to get one slide in my deck!The firewall allows us to expose our database to Windows Azure services via a checkbox and to add ranges of IP addresses such as your home office and your business… or possibly the address of a 3rd party server hosting some application that needs data access.I’ll do a thorough demo of this feature in session 3…
  18. When you created your SQL Azure database server, you supplied an administrator’s user name and password. I have named my user accordingly… to remind me of its power.The SQL Portal will offer you the ability to copy these credentials in connection string format to your clip board… tempting you into believing that you should just paste this into your configuration file.This is terrific for demos like mine… BUT you should NEVER, EVER do this…A database server system administrator password placed in a configuration file in clear text format… there has got to be something naive in the extreme going on here… and worse… no way to create non-sa-like users through the UI… you must script your database users and then apply the script to the database. And to anticipate your question… no… you can’t use SQL Server Management Studio to do this either.I will demo this as well in session 3… so hang tight…
  19. Vragen: zijn er managers aanwezig?
  20. THOMAS: We should not include a Q&amp;A in the track session, refer to the “Meet the experts” setup for people with questions. Only allowed if running too fast.