+ All Categories
Home > Technology > Taking A Metro Ride On Windows 8 And Windows Azure

Taking A Metro Ride On Windows 8 And Windows Azure

Date post: 20-May-2015
Category:
Upload: kristof-rennen
View: 781 times
Download: 1 times
Share this document with a friend
Description:
With the upcoming release of Windows 8 and new interesting technologies like WinRT and Metro, it is time to check out the possibilities these bring in combination with Windows Azure. We will work through an application using Windows Azure as a backend for data and processing. Somewhere in the cloud, a worker will be reading and processing information and storing it on storage. Once new information is available and stored, the notification services will inform the clients about it. Using a nicely designed Metro client, this data will be visualized in a touch enabled app running on a Windows 8 tablet.
Popular Tags:
31
Taking A Metro Ride On Windows 8 And Windows Azure Kristof Rennen
Transcript
Page 1: Taking A Metro Ride On Windows 8 And Windows Azure

Taking A Metro Ride On Windows 8 And Windows Azure

Kristof Rennen

Page 2: Taking A Metro Ride On Windows 8 And Windows Azure

Who Am I? Kristof Rennen

Architect at Capgemini Belgium Microsoft Extended Experts Team Member Crew Member of Azug, the Belgian Windows Azure User

Group

@kristofrennen [email protected]

Page 3: Taking A Metro Ride On Windows 8 And Windows Azure

Agenda Integrating Windows 8 and Windows Azure Tiles & Notifications Windows Push Notification Service

Page 4: Taking A Metro Ride On Windows 8 And Windows Azure

Integrating Windows 8 and Windows Azure

Page 5: Taking A Metro Ride On Windows 8 And Windows Azure

Using Storage Accessing storage directly

Getting and storing data in tables Using blobs, images, content from blobs Accessing queues to push messages

+ Easy Quickly up and running Scaled for you (but limited)

- Caching needed Less flexible & more error prone Not easy to change (tight coupling) Less transparent Security (credentials on client side)

Page 6: Taking A Metro Ride On Windows 8 And Windows Azure

Using a Service / API Accessing a (REST) service or an API Data being transferred as Json, XML, … +

Loosely coupled, easy to change Caching is easy Transparent Easily scalable Error handling Reusable

- Scale yourself Contract versioning, not changeable Data size / format important Security needed (e.g. OAuth)

Page 7: Taking A Metro Ride On Windows 8 And Windows Azure

Queue Work Work to be split up in read and write Reads go through the API and directly to storage Writes go through the API and into a Queue A worker processes the Queue and writes to storage +

Loosely coupled Less compute needed Reads need to be fast, writes can be slower Fault tolerant Scale

- Error handling on failed writes Idempotency needed

Page 8: Taking A Metro Ride On Windows 8 And Windows Azure

Interactivity Using Notifications Various types: toast, badge, tile and raw Uses Windows Push Notification Service (WNS) +

Interactivity Notify user when action / refresh needed Notify user when new data is available Flexible, scalable and free

- Not easy to setup at the moment Update needed for Windows 8 Release Preview Channel and endpoint management needed Microsoft only (for the moment)

Page 9: Taking A Metro Ride On Windows 8 And Windows Azure

Secure It Security managed for you Integrate with: Live Id, Google, Facebook, Yahoo, Open Id Claim based + Windows Identity Foundation +

Transparent security Easy to implement Claims Easy configuration

- Extra cost Less control Less flexibility Claim limitation (e.g. Live Id)

Page 10: Taking A Metro Ride On Windows 8 And Windows Azure

Hybrid Access on premise machines from the cloud Integrated solutions Security, mail, applications +

Loosely coupled Firewall friendly Re-use of on premise servers Easy transition

- Scalability Single Point Of Failure Azure connect setup

Page 11: Taking A Metro Ride On Windows 8 And Windows Azure

Tiles

Page 12: Taking A Metro Ride On Windows 8 And Windows Azure

Wide (2x1)Square (1x1)

Basic Tiles Tap on a tile to launch or switch to an app Static default tile specified in app manifest Two sizes (user controlled)

Both sizes support live updates (peek, local or cloud, templates)

Page 13: Taking A Metro Ride On Windows 8 And Windows Azure
Page 14: Taking A Metro Ride On Windows 8 And Windows Azure

Notifications

Page 15: Taking A Metro Ride On Windows 8 And Windows Azure

Tile Notifications Change the tile displayed on the start screen Supports images Supports text To be foreseen in both sizes

Page 16: Taking A Metro Ride On Windows 8 And Windows Azure

Toast Notifications Deliver transient messages outside the context of the app Gets the user’s attention immediately User is in control and can permanently turn off toast

notifications from your app Allows quick navigation to a contextually relevant location

in your app Toast notifications are easy to invoke from your app or from

the cloud

Page 17: Taking A Metro Ride On Windows 8 And Windows Azure

Badge Notifications Overlay on top of a tile Supports an icon Supports text Notify users of updated items in the app Can be shown on lock screen as well

Page 18: Taking A Metro Ride On Windows 8 And Windows Azure

Raw NotificationsType of push notificationNo UIPerform background tasks

Page 19: Taking A Metro Ride On Windows 8 And Windows Azure

Make your app alive with activityusing Tiles and Notifications

Page 20: Taking A Metro Ride On Windows 8 And Windows Azure

Windows Push Notification Service

Page 21: Taking A Metro Ride On Windows 8 And Windows Azure

Windows Notification Service Enables delivery of tile and toast notifications over the

internet. Tile updates and notifications shown to the user even if

your app is not running. WNS handles communication with your app Scales to millions of users WNS is a free service for your app to use

Page 22: Taking A Metro Ride On Windows 8 And Windows Azure

Push Notification OverviewWindows 8 Cloud Service

Windows Notification

Service

Metro Style App

Notification

Client Platform

2

3

1 3

1. Request Channel URI

2. Register with your Cloud Service

3. Authenticate & Push Notification

Page 23: Taking A Metro Ride On Windows 8 And Windows Azure

Push Notification OverviewWindows 8 Cloud Service

Windows Notification

Service

2

3

3

Request Channel URI

Register with your Cloud Service

Authenticate & Push NotificationMetro Style App

Notification

Client Platform

Building a Cloud Service with Window AzureWhat a service needs to support

Secure, web based API for channel URI registration.

Persistent storage of channel URI.

Storage for tile and toast images.

How do I do that with Windows Azure?

Windows Azure Compute• Web Role

• Full IIS support

• WCF REST and ASP.NET MVC

Windows Azure Storage• Table Storage

• Blob Storage

Page 24: Taking A Metro Ride On Windows 8 And Windows Azure

Register your App

Page 25: Taking A Metro Ride On Windows 8 And Windows Azure

Windows Push Notifications Service using Windows Azure

demo

Page 26: Taking A Metro Ride On Windows 8 And Windows Azure

Recap

Page 27: Taking A Metro Ride On Windows 8 And Windows Azure

Make your app alive with activityusing Tiles and Notifications

Use Windows Notifications Service when app is not running

Leverage Windows Azure to provide cloud service infrastructure

Page 28: Taking A Metro Ride On Windows 8 And Windows Azure

Resources

Register your app

http://manage.dev.live.com/build

Download the Windows Azure Toolkit for Windows 8

http://watwindows8.codeplex.com/

Windows 8 Developer Documentation

http://manage.dev.live.com/build

Page 30: Taking A Metro Ride On Windows 8 And Windows Azure

Further reading and documentation

Creating tiles and toast

Quickstart: Creating a tile notification

UX guidelines for tiles

Creating and managing tiles, toast, and Windows push notifications

Push notification client sample

Page 31: Taking A Metro Ride On Windows 8 And Windows Azure

Recommended