Applications web hautement évolutives sur Azure

29
AMBIENT INTELLIGENCE tech days 2015 # mstechdays techdays.microsoft.fr

Transcript of Applications web hautement évolutives sur Azure

Page 1: Applications web hautement évolutives sur Azure

AMBIENT INTELLIGENCE

tech days•

2015

#mstechdays techdays.microsoft.fr

Page 2: Applications web hautement évolutives sur Azure

Applications web hautement évolutives sur Azure

Page 3: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

« La capacité d’un système (une application web) à gérer un changement d’ordre de grandeur de la demande (traffic HTTP) de manière fiable (sans planter), ou sa faculté à s’adapter (grossir) pour répondre à cette demande.

« Scalabilité » ?

Source:

http://en.wikipedia.org/wiki/Scalability

Page 4: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

Page 5: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

Niveau 1 Niveau 2 Niveau 3

>100,000

RPS

>10,000

RPS

>100

RPS

Page 6: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

Page 7: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

Base de données sur le disque local

Images stockées sur le disque local

Application “state-full”

Situation initiale

Website

Page 8: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

Démo

Page 9: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

Résultats des tests

Page 10: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

Page 11: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

Stratégie

Website

Page 12: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

Démo

Page 13: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

Migration de la base de données sur un service dédié : Azure SQL Database

Déplacement du contenu statique dans un service dédié : Azure Storage Blob

Transformation du site en « Stateless »

Capacité d’utiliser le « scaling horizontal » d’Azure Websites

Stratégie

Page 14: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

Résultats des tests

Page 15: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

Configurer le mécanisme d’Auto Scale

Optimiser le code du site

Optimiser la couche SQL

Ajouter une couche de cache

Utiliser un CDN

Bénéficier de services externes

Aller plus loin

Page 16: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

>100,000

RPS

>10,000

RPS

>100

RPS

Niveau 1 Niveau 2 Niveau 3

Page 17: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

Page 18: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

Mon app

Instance A

Mon app

Instance B

Page 19: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

Objectif :

Bénéfices :

Problèmes :

Page 20: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

North Europe

Website

Webjob

West Europe

Website

Webjob

Page 21: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

Démo

Page 22: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

Copie des images sur les régions

distantes

Mise à jour des données via une file

(CQRS*)

Traitement des données de manière

asynchrone avec Azure Webjobs

Ajout de Traffic Manager

Déploiement contrôlés et synchronisés

avec les slots de déploiement

Architecture

West Europe

Website

Webjob

* Command Query Responsibility Segregation

Page 23: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

North Europe

Website

Webjob

Modèle asynchrone amène une

« eventual consistency »

La synchronisation de la base de

données est une des options

La notion « active / active »

dépend de l’application

Page 24: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

>100,000

RPS

>10,000

RPS

>100

RPS

Niveau 1 Niveau 2 Niveau 3

Page 25: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

Architect for the Cloud Using Azure Web Siteshttps://msdn.microsoft.com/en-us/magazine/dn787017.aspx

Best Practices for the Design of Large-Scale Services on Azure Cloud Serviceshttps://msdn.microsoft.com/library/azure/jj717232.aspx

How to Scale Websiteshttp://azure.microsoft.com/en-us/documentation/articles/web-sites-scale/

Create a Global Web Presence on Azure Websites http://azure.microsoft.com/en-us/documentation/articles/web-sites-global-web-presence-solution-overview/

Deep Dive into Hidden Gems, Tips and Tricks for Azure Websiteshttp://channel9.msdn.com/Events/Build/2014/3-624

Page 26: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

Activez vos bénéfices Azure jusqu’à

115€ de ressources mensuelles

offertes

115€ /mois

x5 membres

x3 ans

= 4 175€ de ressources offertes

http://azure.com http://aka.ms/azurepourmsdn

150€ de ressources offertes

Sans engagement

Pour tousUn mois d’essai offert

http://www.microsoft.com/bizspark/

Pour les startupsBizspark

= 49 000€ de ressources offertes

pendant un an

Pour les abonnés MSDN

Page 27: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

Inscrivez-vous : http://aka.ms/pepiniereazure

Coaching technique et business

Ressources

Une équipe à Microsoft pour vous accompagner dans votre projet cloud et mettre à

votre disposition de l’aide personnalisée.

Visibilité

Page 28: Applications web hautement évolutives sur Azure

tech.days 2015#mstechdays

http://notes.mstechdays.fr

Page 29: Applications web hautement évolutives sur Azure

© 2015 Microsoft Corporation. All rights reserved.

tech days•

2015

#mstechdays techdays.microsoft.fr