Download - Backend i os
![Page 1: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/1.jpg)
# B A C K E N D _ I O S
Julio 2014
![Page 2: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/2.jpg)
I N T R O D U C C I Ó N#BACKENDS_ IOS
![Page 3: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/3.jpg)
C O N C E P T O S
• ¿qué es el cloud computing?
• es un paradigma que permite ofrecer servicios a través de internet.
• ¿cuando empezó todo?
• fabricas de información (Wired Octubre 2006), explica la visión de Google, Microsoft, Amazon...
• Distintas capas, distintas posibilidad
• PaaS: (Platform as a Service)
• SaaS: (Software as a Service)
• IaaS: (Infrastructure as a Service)
• Baas o MBaas (Mobile Backend as a Sevice)
![Page 4: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/4.jpg)
#BACKEND_ IOS
![Page 5: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/5.jpg)
C O N C E P T O S
• Metodología DOA (Desarrollo Orientado al Ahorro)
![Page 6: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/6.jpg)
M B A A S - C O N C E P T O S
Mira nena, aquí hay una cuestión: el conceto es el conceto.
![Page 7: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/7.jpg)
A P P MBaaS - Conceptos
• Mobile Backend as a Service. ¿el nuevo midleware?
• http://blogs.forrester.com/michael_facemire/12-04-25-mobile_backend_as_a_service_the_new_lightweight_middleware
![Page 8: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/8.jpg)
A P P MBaaS - Conceptos
• Baas nos proporcionan los ingredientes necesarios para construir soluciones web o móviles, olvidándonos de diseñar, construir y mantener nuestro propio Backend.
• Nacen bajo el paraguas de la suma de dos elementos: Grandes proveedores de Cloud + API Business
![Page 9: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/9.jpg)
A P P
• Baas nos proporcionan los ingredientes necesarios para construir soluciones web o móviles, olvidándonos de diseñar, construir y mantener nuestro propio Backend.
• Nacen bajo el paraguas de la suma de dos elementos: Grandes proveedores de Cloud + API Business
MBaaS - Conceptos
• Estos “ingredientes” son comunes en la mayoría de de Baas: • SDK multiplataforma • Servicios de gestión de usuarios (OAuth, propios) • Integración con redes sociales • Notificaciones Push • Almacenamiento en Cloud • Construcción de REST API propia
![Page 10: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/10.jpg)
A P P
• Baas nos proporcionan los ingredientes necesarios para construir soluciones web o móviles, olvidándonos de diseñar, construir y mantener nuestro propio Backend.
• Nacen bajo el paraguas de la suma de dos elementos: Grandes proveedores de Cloud + API Business
MBaaS - Conceptos
Apps Monoliticas ->
![Page 11: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/11.jpg)
B A C K E N D S PA R A I N D I E S#BACKENDS_ IOS
![Page 12: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/12.jpg)
PA R S E
• Es el MBaaS de moda, marca tendencia
• Pero debes saber:
• Comprado por Facebook
• Está sobre AWS...no sé por cuanto Aempo
• Aún así, es probablemente el mejor para desarrolladores independiente y pequeñas empresas
![Page 13: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/13.jpg)
PA R S E
• Nos ofrece:
• Integración Redes Sociales
• GesAón de usuarios / roles
• UI
• In-‐App Purchase
• Files
![Page 14: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/14.jpg)
PA R S E
• Nos ofrece:
• Push
• Persistencia
• GeoPoints
• Cloud Code
![Page 15: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/15.jpg)
PA R S E
• Soporta y Aene SDKs para:
![Page 16: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/16.jpg)
PA R S E
• Cloud Code
• Podemos escribir nuestras APIs
• basadas en JS y backbone
• TENEMOS Tareas programadas!!!!! desde sepAembre’13
![Page 17: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/17.jpg)
PA R S E
• Consumir cloud code es muy sencillo:
[PFCloud callFunctionInBackground:@"NOMBRE-API" withParameters:params block:^(id object, NSError *error) {
![Page 18: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/18.jpg)
PA R S E
• Y nuestro cloud code podría tener este aspecto….
• [PFCloud callFuncAonInBackground:@“generateNewID”……
![Page 19: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/19.jpg)
B A C K E N D S PA R A S TA R T U P S #BACKENDS_ IOS
![Page 20: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/20.jpg)
M O B I L E S E R V I C E S
!
• Es el MBaaS de Microsob
• Mobile Services desde finales del 2012
• Nos ofrece:
![Page 21: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/21.jpg)
M O B I L E S E R V I C E S
!
• Autoescalado: podemos definir el “tamaño” de nuestro servicio
• Construir Apps coporaAvas: AAD, BBDD (Sql Server, Oracle)….
![Page 22: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/22.jpg)
M O B I L E S E R V I C E S
!
• Puntos interesantes de este MBaaS
• Custom APIs: Podemos desarrollar nuestras propias Apis de backend...Mola!!
• Scheduler: Tenemos la posibilidad de planificar tareas en background
![Page 23: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/23.jpg)
M O B I L E S E R V I C E S
!
• Custom APIs
• Desarrolladas en JS (express.js) y también en C#
• Permisos a nivel de GET/POST/DELETE/PUT/PATCH
• Expuestas:
• hmps://miendpoint.azure-‐mobile.net/api/nombreAPI
![Page 24: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/24.jpg)
M O B I L E S E R V I C E S
!
• ¿Cómo podemos consumir estas Custom APIs?
INVOKE
![Page 25: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/25.jpg)
M O B I L E S E R V I C E S
!
• ¿Cómo podemos consumir estas Custom APIs?
[client invokeAPI:@"Mi-APICOMOSELLAME" body:nil HTTPMethod:@"GET" parameters:parameters headers:headers completion:....];
![Page 26: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/26.jpg)
M O B I L E S E R V I C E S
![Page 27: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/27.jpg)
B A C K E N D S PA R A T O D O L O D E M Á S #BACKENDS_ IOS
![Page 28: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/28.jpg)
A M A Z O N W E B S E R V I C E S
• Amazon ofrece:
![Page 29: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/29.jpg)
A M A Z O N W E B S E R V I C E S
• Desde 2006 ofrece sus servicios como Plataforma.
• Más de 40k servidores
• 26 Data Centers en: Virginia,Dallas/Fort Worth, Los Angeles, Miami, Newark/New Jersey, California, Seattle, St. Louis, Amsterdam, Dublin, Frankfurt, London, Hong Kong, Singapore, Tokyo...
![Page 30: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/30.jpg)
A M A Z O N W E B S E R V I C E S
• Multiplataforma
• AMI, imágenes de maquinas de casi todos los SO y combinaciones de productos, p.e. W2008 con SQL Server 2008 R2 optimizado......
![Page 31: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/31.jpg)
A M A Z O N W E B S E R V I C E S
• Desarrollo de apps con AWs es posible gracias a un SDK.....pero necesitamos suscribirnos (tarjeta de crédito €)
• Podemos usar AWS sin coste, durante un tiempo limitado y usando los recursos limitados......para investigar, aprender, desarrollar son suficientes.... Hay que controlar el consumo.
![Page 32: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/32.jpg)
A M A Z O N W E B S E R V I C E S
• SDKs para:
• PHP
• Java
• Python
• Ruby
• .NET
• Mobile: Android, IOS y Fire
![Page 33: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/33.jpg)
A M A Z O N W E B S E R V I C E S
• Amazon Cognito
• Gestión de identidades
• Gestión de acceso a recursos para Apps
• Simplificación de upload/download de ficheros
• Integración con Amazon Kinesis
![Page 34: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/34.jpg)
A M A Z O N W E B S E R V I C E S
• Amazon Cognito
• ¿Es el MBAS de Amazon?…. de momento NO, pero…
• Disponible con el SDK 2.0
• BFTask (https://github.com/BoltsFramework/Bolts-iOS)
![Page 35: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/35.jpg)
A Z U R E
![Page 36: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/36.jpg)
A Z U R E
• Al mismo nivel que AWS en cuanto a posibilidades
• Diferente en cuanto a tener un MBAS, pero con la posibilidad de conectarlo con el resto de su nube
![Page 37: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/37.jpg)
A Z U R E
![Page 38: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/38.jpg)
O T R O S B A C K E N D SBACKENDS_ IOS
![Page 39: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/39.jpg)
O T R O S B A C K E N D S
• BaaSBox
• BackBeem
![Page 40: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/40.jpg)
E L H A Z L O T Ú M I S M O B A A S B O X
• BaaSBox
• Backend Open Source
• Basado en Java
• No está ligado a ningún proveedor
• Puedes ser desplegado en cualquier
• En Cloud o en Casa
![Page 41: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/41.jpg)
E L H A Z L O T Ú M I S M O B A A S B O X
!
• Hasta la fecha ofrece SDKs para IOS y Android
• Estos SDKs atacan el Rest Api, que nos proporciona:
• GesAón de Usuarios
• Push
• Documents
![Page 42: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/42.jpg)
E L H A Z L O T Ú M I S M O B A A S B O X
![Page 43: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/43.jpg)
E L H A Z L O T Ú M I S M O B A A S B O X
![Page 44: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/44.jpg)
E L H A Z L O T Ú M I S M O B A A S B O X
• Pros
• Es una opción interesante si no tenemos claro dónde hospedar nuestro beackend al inicio del desarrollo
• Podemos desplegarlo en AWS o Azure sin problemas
• No Aene costes, por el momento
![Page 45: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/45.jpg)
E L H A Z L O T Ú M I S M O B A A S B O X
• Contras
• Java :-‐)
• futuro $$$$
![Page 46: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/46.jpg)
• MBaaS en toda regla, ofrece:
• Persistencia
• Data browser
• SDKs y API REST
• GesAón de usuarios (Facebook, Twimer)
B A C K B E A M
![Page 47: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/47.jpg)
• MBaaS en toda regla, ofrece:
• Push
• emails personalizados
• Parte web
• Y además...
B A C K B E A M
![Page 48: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/48.jpg)
B A C K B E A M
• Y además...
• EstadísAcas
• Modelo de colaboladores
• Desarrollado en España
• hmp://backbeam.io
![Page 49: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/49.jpg)
#BACKENDS_ IOS
Q&A
![Page 50: Backend i os](https://reader034.vdocuments.co/reader034/viewer/2022052310/555e3bfcd8b42aad058b4df3/html5/thumbnails/50.jpg)
M U C H A S G R A C I A S
{ “me”: {“speaker” : “Juan A. Martin”, “company”: “CloudOnMobile”, “contact”: { "mail":"[email protected]”, "twitter":"@byjuanamn", "skype":"by-juanamn" } } }