We live in a mobile bring-your-own-device kind of world with a proliferation of devices—smart phones, tablets, and UltraBooks running iOS, Android, and Windows. People are working in online and offline modes, and moving from device to device. How do you build applications that provide a consistent view of identity, data, and services so that your workforce can be productive wherever they are? Mike Benkovich explores the latest features in Windows Azure and its Mobile Services to show you how to build connected applications that take advantage of the latest technologies, including data, identity, and push notifications. Mike describes the host of Windows Azure features and capabilities—dynamic schema, OAuth, and scripting technologies—that allow you to build secure applications quickly. In this fast-paced and demo-rich session, Mike will build and demonstrate client-side apps on Android devices, Windows Phones, and iOS to show you what is the possible today.
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Windows Azure: Connecting the Dots for a Mobile Workforce
1.
T7
Session
4/16/2015
2:00
PM
"Windows Azure: Connecting the
Dots for a Mobile Workforce"
Presented by:
Mike Benkovich
Imagine Technologies, Inc.
Brought
to
you
by:
340
Corporate
Way,
Suite
300,
Orange
Park,
FL
32073
888-‐268-‐8770
·∙
904-‐278-‐0524
·∙
sqeinfo@sqe.com
·∙
www.sqe.com
2. Mike Benkovich
Imagine Technologies, Inc.
Mike Benkovich brings it all—energy, laughter, and a contagious passion for
coding—with him. In a career that has taken him from minion to business owner,
from database administrator to developer, from author to evangelist, Mike has
seen it all. In more than twenty-five years of working in the technology industry,
he has been part of the latest waves to sweep the industry. Whether delivering
MSDN events live or webcast presentations, on the developer resource site
BenkoTips or his blog, Mike brings enthusiasm for tools and an energy for the
search to find a better way. Follow Mike on Twitter @mbenko.
3. 4/7/15
1
Mike
Benkovich
mike@benko.com
www.benkoTips.com
@mbenko
4. 4/7/15
2
grail
End user
experience
Great apps delivered to
the user’s choice of device
Development agility to
move at mobile speed
Developer Experience
+
+
-‐
5. 4/7/15
3
http://www.eyechartmaker.com
• Web
-‐
HTML5,
css
&
js
• iOS
-‐
Native
Objective
C
• Android
-‐
Java
• Windows
&
WP
-‐
C#
or
JavaScript
&
HTML
• Xamarin
-‐
C#
+
XAML
or
native
• PhoneGap
-‐
Javascript
7. 4/7/15
5
Code to instan+ate Mobile Services
In Applica+on object add code to create an instance of your
Mobile Service
Call methods to operate on the service…i.e.
public
static
MobileServiceClient
MobileService
=
new
MobileServiceClient(
"https://demoapp123.azure-‐mobile.net/",
"OxxAAAAbbbCCCCCddEEEfffGGGh12345"
);
private
void
ButtonSave_Click(object
sender,
RoutedEventArgs
e)
{
var
todoItem
=
new
TodoItem
{
Text
=
TodoInput.Text
};
InsertTodoItem(todoItem);
}
9. 4/7/15
7
WebNative
Full
access
to
client
features
and
power
High
flexibility
and
customization
per
device
Device-‐dependent
Device-‐independent
Easier
management
Constrained
device
integration
and
performance
Web
Native
10. 4/7/15
8
§
Iden+ty
Use exis+ng iden+ty providers like Oauth
MicrosoD, TwiHer, Facebook, Google, etc.
Authorize to work with data
Table op+ons
Everyone
With applica+on key
Authen+cated users
Admins
11. 4/7/15
9
Add code to trigger authen+ca+on
private
MobileServiceUser
user;
private
async
System.Threading.Tasks.Task
Authenticate()
{
while
(user
==
null)
{
string
message;
try
{
user
=
await
App.MobileService
.LoginAsync(MobileServiceAuthenticationProvider.Facebook);
message
=
string.Format("You
are
now
logged
in
-‐
{0}",
user.UserId);
}
catch
(InvalidOperationException)
{
message
=
"You
must
log
in.
Login
Required";
}
MessageBox.Show(message);
}
}
Working with Iden+ty
12. 4/7/15
10
Server logic
Scheduled jobs
No+fica+on services
Diagnos+cs, logging and scale
Diagnos+cs, Logging and Scale
Diagnos+cs
API calls
CPU Time
Data Out
Logging
console.error(…)
console.log(…)
…
Scale -‐ Compute
Scale out instance count
Scale up VM size
Scale -‐ Storage
Scale out mobile service tenant to
dedicated SQL DB
Scale up SQL DB
13. 4/7/15
11
Pricing
reserved mode
service level
agreements
Preview
No availability SLA*
General Availability
99.9%
Shared Instance
Small instance is the only
size available
Free - 10 applications with
unlimited inbound data.
Capped max of 165MB
outbound data/day
Pay - SQL Database
Private VM - Small instance
is the only size available
Free - unlimited inbound
data. 165MB outbound data/
day, excess charged.
Pay - SQL Database,
Compute same reduced rate
as Web Sites i.e 33%
discount, excess outbound
transfers starting at $0.12/GB
Up to 100 applications
shared mode
Summary
Learn and understand the paHerns for connected
applica+ons
Use available tools and technologies to make it
simpler
Try Azure Mobile Services today for FREE!
hHp://aka.ms/AzureTrialMB
More info on my site
hHp://www.Benko+ps.com
14. 4/7/15
12
Visit my site http://
www.benkotips.com
• Resources from today’s talk
• Webcasts
• Downloads
• More!
Get a FREE Cloud Readiness
Evaluation
email mike@benko.com for more
info