More Related Content
Similar to Андрей Чебукин: App service
Similar to Андрей Чебукин: App service (20)
Андрей Чебукин: App service
- 6. Ключевые возможности
• Авто-масштабирование под нагрузкой
• Географическое масштабирование
• Непрерывное развёртывание
• WebJob
• Быстрая интеграция со сторонними сервисами
• Интегрированная аналитика
XperiAndri © 2015
- 8. Resource Group
контейнер для ресурсов
один ресурс в одной группе
охватывает разные регионы
охватывает разные типы ресурсов
RESOURCE GROUP
XperiAndri © 2015
- 12. App-centric Resource Groups and Tier-centric Templates
SQL DB
App
Service
Virtual
Machine
My
DB Tier
Template
My
Web Tier
Template
My
VM Tier
Template
XperiAndri © 2015
- 13. App-centric Resource Groups and Nested Templates
SQL DB
App
Service
Virtual
Machine
My Nested
DB Tier
Template
My Nested
Web Tier
Template
My Nested
VM Tier
Template
XperiAndri © 2015
- 14. Tier-centric Resource Groups and Templates
SQL DB
App
Service
Virtual
Machine
My
DB Tier
Template
My
Web Tier
Template
My
VM Tier
Template
XperiAndri © 2015
- 17. Теги ресурсов
• Пары ключ-значение
назначенные ресурсу или
группе ресурсов
• Видны по всей подкиске
• До 15 тегов на ресурс
XperiAndri © 2015
- 18. Варианты использования тегов
• По окружению: dev/test/prod
• По роли ресурса: web/cache/db
• По отделу в компании:
finance/retail/legal
• По ответственному лицу: Вася
Пупкин
XperiAndri © 2015
- 31. Как это работает
• Таблицы Mobile доступные offline
• Сохраняется локальная очередь
Create, Update, Delete операций
• Разрешаются конфликты
• Мягкое удаление на сервере
• Можно отправлять принудительные
оповещения чтобы запустить
синхронизацию
XperiAndri © 2015
- 32. ▲, 1■, 2
▲, 1
▲, 1
●, 2
■, 2
Разрешение конфликтов в режиме
оптимистического пралеллизма
Device 1
Server
Device 2
▲, 1 ▲, 1
▲, 1 ▲, 1
▲, 1
■, 2
▲, 1
Create
Fetch
Update
Update
■, 2✘
XperiAndri © 2015
- 33. Принудительные оповещения 101
Register device handle at app launch
1. Client app retrieves handle from Platform Notification Service (PNS)
2. Client app sends handle to your custom backend
Send Notification
3. Your backend connects to PNS and requests push
Your code has to manage scale
Your code has to map between logical users and device handles
4. PNS pushes notification to device
Maintain backend device handles
5. Your code must delete expired handles when PNS rejects them
6. Your code must map between logical users and device handles
Platform
Notification
Service
App back-end
Client app
1
2
3
4
5
6
XperiAndri © 2015
- 34. Azure Notification Hubs
Register device handle at app launch
1. Client app retrieves handle from Platform Notification Service
2. Client sends handle to your backend
Backend registers with Notification Hub using tags to represent
logical users and groups
Send Notification
3. Backend sends request to Notification Hub using a tag
Notification Hub manages scale
Notification Hub maps logical users/groups to device handles
4. Notification Hub delivers notifications to matching devices via
PNS
Maintain backend device handles
5. Notification Hub deletes expired handles when PNS rejects them
6. Notification Hub maintains mapping between logical
users/groups and device handles
PNS
App back-end
Client app
1
2
2
4
5
6
Notification
Hub
3
4
- 35. Вывод: Azure Mobile offline sync
• Легко и удобно
Не нужно самому реализовывать database-to-database
синхронизацию
• Работает с разными хранилищами
SQL, Azure Tables, Mongo, Dynamics CRM, Salesforce, etc.
• Cross-platform client SDKs
Windows Universal, Xamarin, iOS, Android
XperiAndri © 2015
- 36. Вывод: Azure Mobile offline sync
• Поддерживает и режим “постоянно на связи”, и
“периодически подключённый”
Явная отправка и получение данных оставляют управление
разработчику
• Гибкие и функциональные
Поддерживают свои способы хранения данных локально
Разрешение конфликтов на севере или клиенте
XperiAndri © 2015
- 37. Вывод: Azure Mobile Apps
• Azure Mobile Apps = Mobile Services + App Service
• Используйте всю мощь Azure Web Apps для вашего
мобильного backend
• Подключайте API Apps, SaaS connectors
XperiAndri © 2015
- 38. Azure Mobile Apps
• Быстро создать прототип мобильного сервиса
• Быстро масштабировать под нагрузку
• Быстрое развёртывание из удобного расположения
• Быстрое подключения сторонних глобальных сервисов
• Интегрированная аналитика
XperiAndri © 2015
Editor's Notes
- Web Apps
- Горячий старт