php no windows azure
DESCRIPTION
Palestra feita na Season por mim, Priscila Sato, em nome do grupo PHPSP. Palestra sobre Windows Azure e como começar a trabalhar com ele e uns exemplos de código usando o SDK oficial.TRANSCRIPT
![Page 1: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/1.jpg)
PHP no Azure#PHPSP + Season@mayogaX
![Page 2: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/2.jpg)
Assuntos
● About e convite● Windows Azure● Web Role● Demo● Work Role● Exemplos de uso● Demo
![Page 3: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/3.jpg)
About e convite
@MayogaX - http://dev.mayogax.me
PHPSP - http://phpsp.org.br
PHPSP Girls - ask me
![Page 4: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/4.jpg)
Windows Azure
![Page 5: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/5.jpg)
Windows Azure
Plataforma de nuvem da MicrosoftIaaS, PaaS, SaaSFacilmente escalavel
![Page 6: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/6.jpg)
Trabalhando com Web Role
![Page 7: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/7.jpg)
Web Role
Forma mais simples e rápida
Endpoint: http ou https
Escalavel
![Page 8: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/8.jpg)
Web Role
Instantaneo
![Page 9: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/9.jpg)
Web Role - Criação Rápida
Criação rápida provê o o básico para você subir seu site.
Você pode fazer deploy direto com git
![Page 10: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/10.jpg)
Web Role - Da Galeria
A opção Da Galeria possibilita escolher algo já pronto para usarmos
![Page 11: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/11.jpg)
DEMO
![Page 12: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/12.jpg)
Trabalhando com Work Role
![Page 13: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/13.jpg)
Indicada para serviços em backgound
Exemplos de uilização:● Um crawler que rode de tempo
em tempo● Um serviço de notificações● Um serviço que rode de tempo em
tempo
Work Role
![Page 14: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/14.jpg)
SDK
Azure Tables, Azure Blobs, Azure Storage Queues, Azure Service Bus, Azure Service Runtime e etc.
![Page 15: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/15.jpg)
SDK - Composer{
"require": {
"microsoft/windowsazure": "*"
},
"repositories": [
{
"type": "pear",
"url": "http://pear.php.net"
}
],
"minimum-stability": "dev"
}
![Page 16: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/16.jpg)
SDK
![Page 17: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/17.jpg)
Exemplos de uso
![Page 18: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/18.jpg)
Start!
Configurar meu serviço
![Page 19: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/19.jpg)
Fila
Primeiro criar uma fila para guardar os meus twitts
![Page 20: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/20.jpg)
Conjunto de entidade
Entidade se asemelha a uma linha
Entidades de até 1MB
http://<storage account>.table.core.windows.net/<table>
Table Storage
![Page 21: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/21.jpg)
Table Storage
Criar uma table para guardar meus twitts
![Page 22: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/22.jpg)
Table Storage
Para pegar dados da Table
![Page 23: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/23.jpg)
Guardar os Twitts na Table
Guardar um twitt com texto puro
![Page 24: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/24.jpg)
DEMO
![Page 25: PHP no Windows Azure](https://reader034.vdocument.in/reader034/viewer/2022052316/5590b58e1a28ab105f8b45ca/html5/thumbnails/25.jpg)
ObrigadaCriticas, elogios, sugestões, dúvidas, convites para jogar RPG?