Top Banner
Azure REST Services Presented by Barkha Herman My-Guides.com
15
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Azure REST Services Presented by Barkha Herman My-Guides.com.

Azure REST Services

Presented by Barkha HermanMy-Guides.com

Page 2: Azure REST Services Presented by Barkha Herman My-Guides.com.

What are we going to talk about?

• How to write a REST service for Azure• How to use Azure Console / SQL Azure (brief)• How to deploy Azure Service• How to consume a REST service (obligatory)• What about security?• Some notes on scalability

Page 3: Azure REST Services Presented by Barkha Herman My-Guides.com.

Service – Why?

• Amazon – everything is a service– Steve Yegge Rant

• Clients are more than the website– Social media, web, thick client, smart devices etc.

• Services begat client apps (see bullet 1)

Page 4: Azure REST Services Presented by Barkha Herman My-Guides.com.

Obligatory REST slide (aka REST – Why?)

• Representational State Transfer• Easy as web• Uses Get, Put, Post Delete for CRUD• URIs, HTTP based, Common Data formats• Roy Fielding started it!• Light weight, does not have to be XML.

Page 5: Azure REST Services Presented by Barkha Herman My-Guides.com.

Azure – Why?• Scalability is easy – scale up (hosted account

story)• Cost – pay as you go, scale down• Reliability – triple redundancy to avoid falls

(climbing reference)• Security – Bank vs. Mattress analogy• PaaS as opposed to SaaS• Watch the spiel on MS sites if you want to

know more.

Page 6: Azure REST Services Presented by Barkha Herman My-Guides.com.

Pricing

• Database– Based on instance / Size

• Compute– Based on instance / Size

• CDN– Size / Transfer Volume

https://www.windowsazure.com/en-us/pricing/details/

Page 7: Azure REST Services Presented by Barkha Herman My-Guides.com.

How to write a RESTful services and deploy them to Azure

• It’s easier than you think…• Use WCF / C# (use what you know)• Download / Install REST Template– http://visualstudiogallery.msdn.microsoft.com/fbc

7e5c1-a0d2-41bd-9d7b-e54c845394cd• SQL Azure• WCF Service• Deploy• Run!

Page 8: Azure REST Services Presented by Barkha Herman My-Guides.com.

CODE!!!

Page 9: Azure REST Services Presented by Barkha Herman My-Guides.com.

What about security?• Why I love to segregate – aka Command

Query Separation– Security• Read service is world accessible – write service not so

much

– Performance• Throw more instances at the read service

– Bertrand Meyers - if you want to learn more• Tokens for access• TLS

Page 10: Azure REST Services Presented by Barkha Herman My-Guides.com.

CODE!!!!

Page 11: Azure REST Services Presented by Barkha Herman My-Guides.com.

Scalability

• Autoscaling Application Block• AzureWatch• Demo – how to change it manually

Page 12: Azure REST Services Presented by Barkha Herman My-Guides.com.

Conclusion

• Azure makes it super easy to write and deploy scalable services

• REST / WCF makes it super easy to write accessible services

• Got to be on the app store if you want to be seen

(come together!)

Page 13: Azure REST Services Presented by Barkha Herman My-Guides.com.

Questions?

Page 14: Azure REST Services Presented by Barkha Herman My-Guides.com.

Shameless Plug - download our apps!!!(and rate them)

Page 15: Azure REST Services Presented by Barkha Herman My-Guides.com.

How to get the code / Contact me

• All the code for this session including slides are at:– http://www.my-guides.com/blog

• The best way to reach me is email:– [email protected]– www.my-guides.com

• Download our free apps, and rate them!!!!– How fast I respond to emails depends entirely on

how you rate our apps…