[XamarinDay] Xamarin et le Cloud, better together !

36

Transcript of [XamarinDay] Xamarin et le Cloud, better together !

Page 1: [XamarinDay] Xamarin et le Cloud, better together !
Page 2: [XamarinDay] Xamarin et le Cloud, better together !

Speakers

Michel Hubert• Directeur Technique

Antony Canut• Consultant Xamarin

@michelhubert

Page 3: [XamarinDay] Xamarin et le Cloud, better together !

Qu’est-ce qu’une application mobile ?

API (Rest/Json) B/L Tier Database

« 80% d’appels de services API/Rest »

Page 4: [XamarinDay] Xamarin et le Cloud, better together !

Enjeux de la mobilité

Disponibilité

Scalabilité

Performance

Sécurité

Page 5: [XamarinDay] Xamarin et le Cloud, better together !

Architecture technique

Scalabilité

Page 6: [XamarinDay] Xamarin et le Cloud, better together !

Qu’est-ce qu’une application mobile ?

API (Rest/Json) B/L Tier Database

Page 7: [XamarinDay] Xamarin et le Cloud, better together !

Scalabilité

API (Rest/Json) B/L Tier Database

Serveur surchargé

Page 8: [XamarinDay] Xamarin et le Cloud, better together !

Scalabilité

API (Rest/Json) B/L Tier Database

Timeout

Page 9: [XamarinDay] Xamarin et le Cloud, better together !

Scalabilité

« Comment gère-t-on ce cas de figure avec une architecture on-premise ? »

Page 10: [XamarinDay] Xamarin et le Cloud, better together !

Scalabilité

API (Rest/Json) B/L Tier Database

API (Rest/Json)

API (Rest/Json)Lo

ad

Bala

nce

r

Page 11: [XamarinDay] Xamarin et le Cloud, better together !

Scalabilité

API (Rest/Json) B/L Tier Database

API (Rest/Json)

API (Rest/Json)Lo

ad

Bala

nce

r B/L Tier

B/L TierLo

ad

Bala

nce

r

P1 P2 P3

Architecture complexe et coûteuse

Page 12: [XamarinDay] Xamarin et le Cloud, better together !

Scalabilité

API (Rest/Json) B/L Tier Database

API (Rest/Json)

API (Rest/Json)Lo

ad

Bala

nce

r B/L Tier

B/L TierLo

ad

Bala

nce

r

P1 P2 P3

Solution surdimensionnée

Baisse d’activité

Page 13: [XamarinDay] Xamarin et le Cloud, better together !

Scalabilité

Temps

Nombre de

visites

CapacitéMarge de

sécurité

Surdimensionnement

En période normale, la plateforme traditionnelle est surdimensionnée et

coûteuse

Page 14: [XamarinDay] Xamarin et le Cloud, better together !

Scalabilité

Temps

Nombre de

visitesPic

prévisible

Capacité

Certes, elle permet d’anticiper les pics prévisibles …

Page 15: [XamarinDay] Xamarin et le Cloud, better together !

Scalabilité

Temps

Nombre de

visites Pic

imprévisible

Capacité

… Mais pas les pics imprévisibles

Page 16: [XamarinDay] Xamarin et le Cloud, better together !

Scalabilité

« Comment le Cloud Computing peut vous aider ? »

Page 17: [XamarinDay] Xamarin et le Cloud, better together !

Cloud & Scalabilité

Temps

Nombre de

visites

3

4

6

4

6

Avec le Cloud, la capacité s’adapte aux besoins réels !

Page 18: [XamarinDay] Xamarin et le Cloud, better together !

Cloud & Scalabilité

• L’élasticité : les différentes politiquesPlusieurs politiques peuvent être mises en place pour rendre les services « élastique » et adaptableà la charge réellement utilisée :

Manuelle

Programmée

Automatique

Page 19: [XamarinDay] Xamarin et le Cloud, better together !

Cloud & Scalabilité

Page 20: [XamarinDay] Xamarin et le Cloud, better together !

Architecture technique

Démo - Scalabilité

Portail Azure

Page 21: [XamarinDay] Xamarin et le Cloud, better together !

t

Co

mp

ute

Inactivity

Period

t

t

t

On and OffOn & off workloads (e.g. batch job)Over provisioned capacity is wasted Time to market can be cumbersome

Unpredictable BurstingUnexpected/unplanned peak in demand Sudden spike impacts performance Can’t over provision for extreme cases C

om

pu

te

Growing FastSuccessful services needs to grow/scale Keeping up w/ growth is big IT challenge Cannot provision hardware fast enoughC

om

pu

te

Predictable BurstingServices with micro seasonality trends Peaks due to periodic increased demandIT complexity and wasted capacity

Co

mp

ute

Cloud Computing Patterns

Page 22: [XamarinDay] Xamarin et le Cloud, better together !

Architecture technique

Disponibilité

Business Continuity

Page 23: [XamarinDay] Xamarin et le Cloud, better together !

Offre Azure

Disponibilité

Azure

99,95 %

Design for failureAutomatisation

Réplication

Page 24: [XamarinDay] Xamarin et le Cloud, better together !

Disponibilité

Règle des 9

Cluster

Backup

DR « cold »

DR « warm »

Live / Live

99,999 %

99,99%

99%

98%

€ €€ €€€ €€€€

Page 25: [XamarinDay] Xamarin et le Cloud, better together !

Business Continuity

Increasing costs

Too many complications, problems and mistakes

Business Continuity

Not enough data retention

Time-intensive media management

Untested DR & decreasing recovery confidence

Too much data with insufficient protection

Page 26: [XamarinDay] Xamarin et le Cloud, better together !

Azure Site Recovery

Customer 1 DC

Microsoft Azure Site Recovery

Microsoft Azure

Customer 2 DC

DR OrchestrationDR Orchestration

Target: Microsoft Azure

Extensible Data

Channel

Page 27: [XamarinDay] Xamarin et le Cloud, better together !

Azure Site Recovery

Business Continuity

Zero RPO/Near sync RPO solutions with Azure Site Recovery

DR Support for any Infrastructure on your on-premises (Hyper-V, VMWare, Physical)

Simple, consistent, unified management experience

Support for Enterprise scenarios: Shared Storage, raw devices, clustering, group consistency

Support for Enterprise Class Applications

Low TCO DR to Public Cloud or Service Provider Cloud

Page 28: [XamarinDay] Xamarin et le Cloud, better together !

Traffic Manager

X

Page 29: [XamarinDay] Xamarin et le Cloud, better together !

Architecture technique

Performance

Page 30: [XamarinDay] Xamarin et le Cloud, better together !

Internationalisation

https://monservicerest.com

Page 31: [XamarinDay] Xamarin et le Cloud, better together !

Internationalisation

https://monservicerest.com

Page 32: [XamarinDay] Xamarin et le Cloud, better together !

Datacenters Azure 28 Regions Worldwide

100+ datacenters

Top 3 networks in the world

2.5x AWS, 7x Google DC Regions

G Series – Largest VM in World, 32 cores, 448GB Ram, SSD…

Operational

Announced/Not Operational

Central US

Iowa

West US

California

East US

Virginia

US Gov

Virginia

North Central US

Illinois

US Gov

Iowa

South Central US

Texas

Brazil South

Sao Paulo State

West Europe

Netherlands

China North *

Beijing

China South *

Shanghai

Japan East

Tokyo, Saitama

Japan West

Osaka

India South

Chennai

East Asia

Hong Kong

SE Asia

Singapore

Australia South East

Victoria

Australia East

New South Wales

* Operated by 21Vianet ** Operated by Deutsche Telekom

India Central

Pune

Canada East

Quebec City

Canada Central

Toronto

India West

Mumbai

Germany North East **

Magdeburg

Germany Central **

FrankfurtNorth Europe

Ireland

East US 2

Virginia

United Kingdom

RegionsUnited Kingdom

Regions

Page 33: [XamarinDay] Xamarin et le Cloud, better together !

Un peu de PowerShell…

Créer un profil Traffic Manager

New-AzureTrafficManagerProfile -Name "SDP-TM-Performance" -DomainName "SDP-TM-Performance.trafficmanager.net" -LoadBalancingMethod "Performance" -MonitorProtocol "Http" -MonitorPort 80 -MonitorRelativePath "/iis85.jpg" -Ttl30

$TMProfile = Get-AzureTrafficManagerProfile -name "SDP-TM-Performance"

Add-AzureTrafficManagerEndpoint -TrafficManagerProfile $TMProfile -DomainName"SDP-EUS-CS01.cloudapp.net" -Status "Enabled" -Type "CloudService" | Set-AzureTrafficManagerProfile

Add-AzureTrafficManagerEndpoint -TrafficManagerProfile $TMProfile -DomainName"SDP-WE-CS01.cloudapp.net" -Status "Enabled" -Type "CloudService" | Set-AzureTrafficManagerProfile

Page 34: [XamarinDay] Xamarin et le Cloud, better together !

Le mode dégradé

Page 35: [XamarinDay] Xamarin et le Cloud, better together !

Architecture technique

Performance

Mode Offline - Synchronisation

Page 36: [XamarinDay] Xamarin et le Cloud, better together !

Pour conclure

Disponibilité

Scalabilité

Performance

Sécurité