Your SlideShare is downloading. ×
Android / iOS 개발자가 알아야 할
BaaS (Backend as a Service)
김영욱 부장
Microsoft Korea
YoungWook@outlook.com
Agenda
1st Microsoft Cloud
2st Azure Mobile Service
3st Android Auth
(Facebook, Twitter, Microsoft, Google)
Cloud Platform
Microsoft Azure
$
•NET, PHP, Node.js, Python
•기본 제공되는 자동 크기 조정 및 부하 분산
•자동 패치 및 고가용성
•Git, TFS, GitHub와 함께 연속 배포
•SQL 데이터베이스, MySQL, MongoDB...
•가용성 및 확장성이 뛰어난 플랫폼
•인프라가 아닌 서비스 모델에만 집중
•가장 진보한 형태의 클라우드 개발 및 서비스 환경
•iOS, Android, Windows, HTML5
•단일 Push로 iOS, Android...
Mobile Service
Mobile Services
 Easily build cloud back-ends
 Data, identity management, push
notifications
 Windows 8, Windows Phone,...
지원 플랫폼
3
Windows Store iOS
Android
Windows Phone 8
iOS
Android
HTML 5/JS
SDKs
Server-
Side
Scripts
&
Scheduler
기본 기능
Management Portal
대시보드
 Quick glance
 Displays relevant mobile service
information, including the service
URL, status, location, database ...
데이터
 In Windows Azure Mobile Services, data is
stored in tables, which are maintained in the
Windows Azure SQL Database t...
스크립트
 Mobile Services enables you to
register JavaScript code to be
executed by the service when an
insert, update, delet...
권한
 Mobile Services enables you to set the
following permissions on table operations:
 Everyone: request for the operati...
스케즐
 Mobile Services enables you to
register JavaScript code to be
executed by the service either on
a schedule that you ...
Push
 Mobile Services can send push notifications to your
apps.
 The way that you configure and send push
notifications ...
Identity
 Mobile Services integrates with the
following identity providers to make it easy
to authenticate users from you...
Configure
 You can directly access to the
database used by your mobile
service just clicking the link.
 You can change t...
Scale
 On the Scale tab, you can scale
your mobile service by switching
to reserved mode and adding role
instances.
 You...
Log
 Mobile Services writes system and
script errors to the log.
 Click on a log entry to view details
and copy to the c...
DEMO
Live coding…
Android App + Mobile Service
처음 만들어 보는 Mobile Service
Class Summary
Class Description
AndroidHttpClientFactoryImpl Default implementation for AndroidHttpClientFactory
BuildConf...
© 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be...
20140424 Android / iOS 개발자를 위한 Microsoft BaaS 세미나
20140424 Android / iOS 개발자를 위한 Microsoft BaaS 세미나
20140424 Android / iOS 개발자를 위한 Microsoft BaaS 세미나
20140424 Android / iOS 개발자를 위한 Microsoft BaaS 세미나
Upcoming SlideShare
Loading in...5
×

20140424 Android / iOS 개발자를 위한 Microsoft BaaS 세미나

180

Published on

2014년 4월 24일 있었던 Android / iOS 개발자를 위한 Microsoft BaaS 세미나 발표 자료 입니다.

Published in: Engineering, Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
180
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • In a physical sense, Windows Azure is built on datacenters across the world. We currently operate in 8 global regions across different continents. 4 in US, 2 in Europe, and 2 in Asia; we also recently announced Azure availability in China . These are gigantic in their scale and operations. Each of the datacenter is 7-10 times the size of a football field and the PUE (Power utilization efficiency, which is a measure of datacenter efficiency) for the latest generation DC is 1.1. Typically for a large enterprise datacenter PUE tends be at about 2.0.We provide support across 109 countries and you can count on our local teams across the world.So let’s see how this translates to benefits for you! --Optional talking points:Each region has two datacenters that are paired with each other for things like data replication.We provide support across 109 countries and in 8 languagesWe have our local teams and sales offices across the world.In addition, we have 19 countries with local currency support
  • In a physical sense, Windows Azure is built on datacenters across the world. We currently operate in 8 global regions across different continents. 4 in US, 2 in Europe, and 2 in Asia; we also recently announced Azure availability in China . These are gigantic in their scale and operations. Each of the datacenter is 7-10 times the size of a football field and the PUE (Power utilization efficiency, which is a measure of datacenter efficiency) for the latest generation DC is 1.1. Typically for a large enterprise datacenter PUE tends be at about 2.0.We provide support across 109 countries and you can count on our local teams across the world.So let’s see how this translates to benefits for you! --Optional talking points:Each region has two datacenters that are paired with each other for things like data replication.We provide support across 109 countries and in 8 languagesWe have our local teams and sales offices across the world.In addition, we have 19 countries with local currency support
  • In a physical sense, Windows Azure is built on datacenters across the world. We currently operate in 8 global regions across different continents. 4 in US, 2 in Europe, and 2 in Asia; we also recently announced Azure availability in China . These are gigantic in their scale and operations. Each of the datacenter is 7-10 times the size of a football field and the PUE (Power utilization efficiency, which is a measure of datacenter efficiency) for the latest generation DC is 1.1. Typically for a large enterprise datacenter PUE tends be at about 2.0.We provide support across 109 countries and you can count on our local teams across the world.So let’s see how this translates to benefits for you! --Optional talking points:Each region has two datacenters that are paired with each other for things like data replication.We provide support across 109 countries and in 8 languagesWe have our local teams and sales offices across the world.In addition, we have 19 countries with local currency support
  • <Move into the specifically Azure story here.>So let’s talk about those last three needs our developers have. If you are in the cloud, firewalls are less cumbersome. Application developers can put data in code in geographical locations that make it very fast. <Latency Example:> Let’s say your business sells Italian pasta, and your sales are growing, your users in Italy have great service because your servers are really close. So you can preload your data on servers in other geographical locations to improve speed and access. Otherwise the transaction needs to hop across the fiber optic, adding a little more latency. Also – You can have the cloud doing the heavy lifting so your phone/device/pc equivalent doesn’t.
  • No one else has this app-in-a-service possibility except in fixed, durable VM environments like linuxvms. But here, no management. It just works.
  • Transcript of "20140424 Android / iOS 개발자를 위한 Microsoft BaaS 세미나"

    1. 1. Android / iOS 개발자가 알아야 할 BaaS (Backend as a Service) 김영욱 부장 Microsoft Korea YoungWook@outlook.com
    2. 2. Agenda 1st Microsoft Cloud 2st Azure Mobile Service 3st Android Auth (Facebook, Twitter, Microsoft, Google)
    3. 3. Cloud Platform
    4. 4. Microsoft Azure
    5. 5. $
    6. 6. •NET, PHP, Node.js, Python •기본 제공되는 자동 크기 조정 및 부하 분산 •자동 패치 및 고가용성 •Git, TFS, GitHub와 함께 연속 배포 •SQL 데이터베이스, MySQL, MongoDB •WordPress, Umbraco, Joomla, Drupal •VM 인스턴스를 한 개에서 1000개로 확장 •기본 제공되는 가상 네트워크, 부하 분산 •온-프레미스에서 하이브리드 지속성 활용 •Microsoft SQL Server 및 SharePoint Server •Oracle, MySQL, Redis, MongoDB •분당 요금으로 비용 절약
    7. 7. •가용성 및 확장성이 뛰어난 플랫폼 •인프라가 아닌 서비스 모델에만 집중 •가장 진보한 형태의 클라우드 개발 및 서비스 환경 •iOS, Android, Windows, HTML5 •단일 Push로 iOS, Android, Windows 지원 •Facebook, Twitter, Google로 소셜 통합 •수백만 개의 장치로 자동 크기 조정 •C# 또는 NodeJS로 백 엔드 코딩 •Active Directory로 엔터프라이즈 Single Sign-On •SQL, Oracle, SAP, MongoDB와 통합 •엔터프라이즈급 SLA
    8. 8. Mobile Service
    9. 9. Mobile Services  Easily build cloud back-ends  Data, identity management, push notifications  Windows 8, Windows Phone, iOS
    10. 10. 지원 플랫폼
    11. 11. 3 Windows Store iOS Android Windows Phone 8 iOS Android HTML 5/JS SDKs Server- Side Scripts & Scheduler 기본 기능
    12. 12. Management Portal
    13. 13. 대시보드  Quick glance  Displays relevant mobile service information, including the service URL, status, location, database and subscription  Usage Timeline:  Displays a scalable chart of CPU time, API calls and data reads over a specific period of time.  Usage Overview:  Displays an overview of the total compute time and storage used by this mobile service  Manage Keys  Manage Keys  Delete  Delete the Mobile Service
    14. 14. 데이터  In Windows Azure Mobile Services, data is stored in tables, which are maintained in the Windows Azure SQL Database that is associated with your mobile service.  Click the Create button to add a new table to your mobile service.  By default, you don’t need to predefine the schema of tables in your database.  Mobile Services automatically add columns to a table based on the data you insert. To change this dynamic schema behavior, use the Dynamic Schema setting on the Configure tab.  To browse data, manage permissions and indexes on tables, or add server scripts, click on a table in the list.  To delete a table, click to select a table row, and then click Delete.
    15. 15. 스크립트  Mobile Services enables you to register JavaScript code to be executed by the service when an insert, update, delete, or read operation occurs against a specific table.  For each table there are 4 CRUD operations (insert, read, update, del)  These scripts provide the ability to inject business logic into table operation, stop an operation from taking place, change or enrich values supplied to the operation or change the results.  For authenticated clients, you can also perform user-specific authorizations based on the userId value of the
    16. 16. 권한  Mobile Services enables you to set the following permissions on table operations:  Everyone: request for the operation against the table is accepted. This option leaves your data wide-open for everyone to access.  Anybody with the Application Key: The application key is required to perform the operation. The application key is distributed with the application. Note: Because this key is not securely distributed, it cannot be considered a security token. To secure access to your mobile service data, you must instead authenticate users before accessing.  Only Authenticated Users: Only authenticated users are permitted to perform the operation. Scripts can be used to further restrict access to tables based on an authenticated user.  Only Scripts and Admins: The operation requires the service master key, which limits the operation only to registered scripts or to administrator accounts
    17. 17. 스케즐  Mobile Services enables you to register JavaScript code to be executed by the service either on a schedule that you define or on- demand from the Management Portal.  Removing duplicate records from a table.  Backing up a database.  Send a report via email.  When your mobile service runs in free mode, you can create only one scheduled job at a time; in reserved mode, you can create up to ten scheduled jobs at the same time.
    18. 18. Push  Mobile Services can send push notifications to your apps.  The way that you configure and send push notifications depends on your app.  You can send push notifications to the following applications:  Windows Store app by using the Windows Push Notification Service (WNS). To send push notifications to your app, you must configure your mobile service to work with WNS.  iPhone and iPad apps by using the Apple Push Notification Service (APNS). To send push notifications to your app, you must configure your mobile service to work with APNS. Do this by generating a special push notification certificate at the iOS Provisioning Portal  Android: You can send push notifications to Android apps by using the Google Cloud Messaging (GCM) service. To send push notifications to your app, you must configure your mobile service to work with GCM.  Windows Phone 8 app by using the Microsoft Push Notification Service (MPNS). Mobile Services does not require you to register your Windows Phone 8
    19. 19. Identity  Mobile Services integrates with the following identity providers to make it easy to authenticate users from your app:  Microsoft Account  Facebook login  Twitter login  Google login  To enable authentication, you must first register your app with one or more of these identity providers and then configure your mobile service.  You must also add authentication code to your app.  When a user login is authenticated by Mobile Services, the value of the userId property on the user object passed to server scripts is set to a value that uniquely identifies a user. This value can then be used to authorize access to data.
    20. 20. Configure  You can directly access to the database used by your mobile service just clicking the link.  You can change the database used by your mobile service to store data with a new or existing DB by clicking Change DB and select one of the following options.  Enable/disable dynamic schema.  In reserved mode, you can configure endpoint monitoring.
    21. 21. Scale  On the Scale tab, you can scale your mobile service by switching to reserved mode and adding role instances.  You can also scale the Windows Azure SQL Database instance used by the service.  Note: When you set the Mobile service mode to Reserved, all of your mobile services in the same region run in Reserved mode.  To estimate the cost required to scale your mobile service, see the Mobile Services Pricing Calculator.
    22. 22. Log  Mobile Services writes system and script errors to the log.  Click on a log entry to view details and copy to the clipboard.  Click the link in the Source column to directly jump to the script that generated the error.  Note: Existing log entries can be viewed in the Management Portal for 7 days.  Your registered server scripts can also write information directly to the log by using the console object.
    23. 23. DEMO Live coding… Android App + Mobile Service
    24. 24. 처음 만들어 보는 Mobile Service
    25. 25. Class Summary Class Description AndroidHttpClientFactoryImpl Default implementation for AndroidHttpClientFactory BuildConfig MobileServiceApplication Provides context regarding the application that is using the Mobile Service. MobileServiceClient Entry-point for Windows Azure Mobile Services interactions MobileServiceJsonTable Represents a Mobile Service Table MobileServiceQuery<E> Class that represents a query to a table, where E is the callback class to use when executing the query MobileServiceQueryOperations Class used to create query operations MobileServiceTable<E> Represents a Mobile Service Table MobileServiceUser Mobile Service authenticated user ServiceFilterResponseImpl ServiceFilterResponse implementation
    26. 26. © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

    ×