The Cloud Zone is brought to you in partnership with Iron.io. Discover how Microservices have transformed the way developers are building and deploying applications in the era of modern cloud infrastructure.
- Client-side developers do need to embrace the cloud. The increasing popularity of connected devices
like tablet computers and smartphones is having a direct effect on the
adoption rate of personal cloud services. You can expect both connected devices and cloud services to grow together.
- This trend has been accelerating over the past couple of years. Mobile and portable devices have limited internal storage and rely heavily on cloud services.
- Windows 8 apps are generally Connected apps.
- You can pull data to them or you can receive push notifications
- Windows 8 is about connecting to the services you need, like Hotmail, Messenger, Facebook, Twitter, LinkedIn, Messaging, and People apps.
- Windows 8 is about synchronizing devices
- It is likely that the world is multi-device
- Mobile, Tablet, Laptop, Desktop
- Developers will need to think about a central, cloud-based storage location.
- SkyDrive is one cloud option available to solve this problem.
- You may create your own Windows 8 app that requires a custom cloud-based backend
- Maybe you are designing an app to bring together photos from many different sources and to then view and share them
- Your photos may need to be aggregated from several locations
- Facebook, Flickr, Skydrive, Windows Phone 8.
- Let the cloud application do this aggregation.
- Let the Windows 8 application get content from just one place.
How the cloud can help
- There are some basic features that all Windows 8 developers will need to master.
- This is where cloud computing can really make a difference and accelerate your time to market.
- Although Windows 8 applications support their own local storage, you will probably want to leverage the cloud to store important data. Most users will have multiple devices. They will expect that the data is accessible from anywhere. That’s why it is important for developers to know how to leverage Storage Services in the cloud.
- Windows 8 comes with a rich communications stack. Most developers will leverage http for most of their communications. There are also push notifications that allow Windows 8 applications to retrieve information in the background and without requesting data specifically.
There are 2 ways your Windows 8 Application can get data
- The cloud provides a way to reach across device platforms and a larger pool of resources from which to get data.
- Windows 8 applications can get data in two ways. The first ways is to simply ask for it by making a web request. This is using a pull approach. The second way Windows 8 applications can get data is to leverage push notifications.
- When a Windows 8 device uses a pull approach, it is basically a HTTP-based, request/response. Developers can choose from various frameworks, which include WCF, OData, WebAPI, WebRequest, etc.
- Data can be sent in a variety of formats, such as SOAP, JSON, XML, POX, etc.
- Push notifications are initiated by the cloud. Before Windows 8 Applications can receive push notifications, Windows 8 applications must register themselves with the push notification service.
- Your custom cloud service can communicate with the Windows Notification Service to tell it to send push notifications
- The windows notification service is designed to be bandwidth and battery friendly.
- It is the push notification mechanism that is used to update live tiles on the Windows 8 desktop.
- The downside to push notifications is that there is no guaranteed delivery of content.
- If guarantees are needed for data delivery, then some of the pull techniques previously discussed may be appropriate.
- Oftentimes push notifications result in a pull request from a Windows 8 application.
This means that once the Windows 8 application gets a push
notification, it knows it needs to then request data from the cloud
using a pull approach. Of course, it may choose to ignore this, given a
Push and Pull – Maybe Both
Push Notification Service is provided by Microsoft. However, Windows 8
applications must register for this service. Once registered,
applications are ready to receive data that is sent by the Windows Push
Push Notification Service may receive data itself from a Windows Azure
cloud application that you create. This cloud based application can
aggregate data from other sources if necessary. You can see from the
diagram above it may request data from Flickr or Facebook or just about
Keeping data off the local device and in the cloud
- Some powerful capabilities are available here.
- To start with, there is the ability to store huge amounts of data.
- Tables allow you to stores huge lists of things or huge collections of objects. Tables can partition themselves across many machines, supporting extremely fast query results even if there are billions of rows.
- Blobs allow you to store large binary objects like videos, documents, even web pages.
- Queues allow you to support asynchronous messaging.
That means your Windows 8 applications can send information to a cloud
application and not be affected by how busy the cloud application is.
- Because Azure supports Infrastructure as a Service Technologies (IaaS), developers have almost an unlimited amount of options for their Data Storage needs
- Microsoft supports Linux in the cloud. This means you can install almost any data store that is supported on Linux, meaning that you can use MongoDB, Cassandra, MySQL, or almost any other data platform.
- Download the Identity Training kit
- Leveraging the Windows Identity Foundation SDK and training kit is probably the best starting point for anyone serious about implementing secure systems.
- Security is a big topic.
- Windows 8 applications can leverage claims-based authentication techniques. Typically, this involves a security token service, which creates SAML tokens. Inside these tokens are claims.
- Claims-based identity can greatly simplify the authentication process for the user because he or she doesn't have to sign in multiple times to multiple applications.
- Single sign in is ideal for some situations, such as to authenticate against multiple applications or websites.
- Claims-based identity is a way to achieve single sign in. It can make the authentication less complex for your apps because those apps don't have to provide ways to create an account or password, etc.
great feature of claims-based identity is that it allows your
applications to obtain specific user information, without having to ask
the user for that information.
- SAML tokens make it possible for single sign on scenarios, where your security credentials need to travel through different security gateways.
- The Access Control Service allows you to leverage third party identity providers, such as Facebook, Yahoo, Google, and Live.
- This frees the developer from having to worry about identity in their application. Identity management is complex and time consuming and takes away from a developer's focus on the application itself.
Download for Azure SDK
Downloads and Setup
- Note the developer tools. There are various IDEs, SDKs, and toolkits that need to be downloaded and installed. Visual Studio should be installed first because the SDK requires that.
- Notice that SQL Server is required because it is used by the Azure software to simulate a the Azure Storage service. Remember, you can develop cloud applications using the simulation environments that come with the tooling. In most cases you do not need to deploy to a data center in order to test your application.
Conclusion It is important that developers familiarize themselves with cloud capabilities. If you have any questions, just post them here.
Here are some downloads to get you started:
The Cloud Zone is brought to you in partnership with Iron.io. Learn how to build and test their Go programs inside Docker containers.
Published at DZone with permission of
, DZone MVB
Opinions expressed by DZone contributors are their own.