Presentation is loading. Please wait.

Presentation is loading. Please wait.

11 Mobile Apps and Azure Cloud

Similar presentations


Presentation on theme: "11 Mobile Apps and Azure Cloud"— Presentation transcript:

1 11 Mobile Apps and Azure Cloud
.NET and .NET Core 11 Mobile Apps and Azure Cloud Pan Wuming 2017

2 Reference San Murugesan, Irena Bojanova, Edited, Encyclopedia of Cloud Computing, John Wiley & Sons, 2016. Bob Familiar, Microservices, IoT, and Azure, Apress, 2015. Developing big data solutions on Microsoft Azure HDInsight, (March 2014) MSDN

3 Topics Cloud and Azure App-Service Connection
Azure cloud services Big date App-Service Connection WCF (SOAP) ASP.NET Core (RESTful) Xamarin Mobile Development XAML, C#, F# A Walkthrough

4 Clouds “Clouds” are the natural evolution of traditional data centers
They expose resources (computation, data/storage, and applications) as standards-based Web services They follow a “utility” pricing model where customers are charged based on their utilization of computational resources, storage, and transfer of data.

5 Cloud Service Models Software as a Service (SaaS)
Platform as a Service (PaaS) Infrastructure as a Service (IaaS)

6 They evolved from previous distributed systems. e. g
They evolved from previous distributed systems. e.g. CORBA, Jini and the Grid, C/S, Integration, OA Workflow, Web services, etc. They evolved from standard Enterprise systems such as DW, BI, ELT, and real-time lookup cache. Service needs Quality of Service (QoS) Service-Level Agreements (SLAs).

7 Data storage as a service (DSaaS)
Analytics as service (AaaS) Desktop as a service (DAAS) Security as a service (SecaaS) Identity and access management as a service (IAMaaS) Monitoring as a service (MaaS)

8 Azure has 11 service categories just now
Compute: Virtual Machines, Cloud Services, Remote App, and Batch Web and Mobile: Web, Mobile, API and Logic Apps, API Management, Notification Hubs, Mobile Services Data and Storage: SQL Database, DocumentDb, Redis Cache, Storage, StorSimple, Search Analytics and IoT: HDInsight, Machine Learning, Stream Analytics, Data Factory, Event Hubs, SQL Data Warehouse

9 Cont’ Networking: Virtual Network, Express Route, Traffic Manager, Load Balancer, DNS, VPN Gateway Media and CDN: Media Services, Encoding, Media Player, Media Intelligence, Content Protection, Live and On-Demand Streaming, Content Delivery Network (CDN) Hybrid Integration: Service Bus, BizTalk Services, Backup, Site Recovery Identify and Access Management: Active Directory, Multi-Factor Authentication Developer Services and Management: Visual Studio Online (VSO), Application Insights Management: Key Vault, Scheduler, Automation, Operational Insights

10 Big data is associated with three “Vs”
Volume Velocity variety. Some data is produced in streams.

11 Examples of big data Imagery. Google Maps
Video streaming. Netflix has over 3.14 PB of video in the master copies alone (Vance, 2013, p. 4). Social networks. By February of 2012, Facebook had stored over 100 PB of data (McKenna, 2013). Scientific sensor data. As of February 2013, the CERN Data Centre had recorded over 100 PB of physics data over a period of 20 years. The Internet. In 2007, Google was already processing over 403 PB of data per month (Dean and Ghemawat, 2008). Cisco estimated that all global Internet traffic in 2012 was about 400 Exabytes (EB) (January 1, 2016).

12 As noted above, sources of big data include search engines, social media, online retail, sensors, and smart- phones. Weather‐prediction systems consume data taken from weather sensors around the country and in many parts of the world. (Hardy, 2012). The National Cancer Institute is investigating gene‐to‐cancer interaction, correlating genes in 60 million patients with five major cancer types, and handling 20 million medical publications (Hurd, 2013). Ford collects data on its new cars. Ford’s Fusion hybrid model can create 25 GB of data per hour. This data can be used to fine‐tune the car. Ford’s use of big data analytics includes analyzing computer‐aided design (CAD) and computer‐aided engineering (CAE) models, along with running manufacturing simulations (Hemsoth, 2013).

13 WCF Windows Communication Foundation (WCF) is a framework for building service-oriented applications. It is a runtime and a set of APIs for creating systems that send messages between services and clients. WCF is the foundation for other distributed technologies by Microsoft, such as Azure, AppFabric, and BizTalk

14 Because WCF exposes service functionality through open standards, such as SOAP, you can use almost any type of client to consume the service. Allowing a .NET client to consume the service is as easy as creating a service reference or generating a proxy through a command-line utility (svcutil.exe) Non-.NET clients would typically use SOAP to consume a WCF Service

15 ASP.NET Core 2.0 A cross-platform, high-performance, open-source framework Build web apps and services, IoT apps, and mobile backends. New Web Server: Kestrel Deploy to the cloud or on-premises Entity Framework (EF) Core 2.0 for coding CRUD (create, read, update, delete)

16 MVC, Web UI and web APIs ASP.NET Core MVC provides features that help you build web APIs and web apps Compare with Code-XAML-WindowClass in WPF The Razor view engine is used to render Web UI views Creating Backend Services (web APIs) for Native Mobile Applications The Model-View-Controller (MVC) architectural pattern separates an application into three main groups of components: Models, Views, and Controllers. Both the view and the controller depend on the model. However, the model depends on neither the view nor the controller. This is one of the key benefits of the separation.

17 The Model-View-Controller (MVC) architectural pattern
The client is whatever consumes the web API (mobile app, browser, etc.). A model is an object that represents the data in the app. Models are represented as C# classes, also know as Plain Old C# Object (POCOs). A controller is an object that handles HTTP requests and creates the HTTP response.

18

19 Razor for Web UI Razor is a compact, expressive and fluid template markup language for defining views using embedded C# code.

20 Web API Authenticating
Routing is how Web API matches a URI to an action. Attribute routing RESTful web services typically use JSON messages to return data to the client. Use HTTP verbs to perform CRUD (Create, Read, Update, Delete) operations HTTP methods, such as GET, POST, PUT, PATCH, or DELETE. Security: authorization, data protection, etc.

21 Xamarin Mobile Development
Complete Binding for the underlying SDKs Objective-C, Java, C, and C++ Interop Modern Language Constructs Amazing Base Class Library (BCL) Mobile Cross Platform Support

22 Xamarin.Forms

23 Walkthrough ASP .NET Core web API Xamarin: Native Android App
Native mobile backend: ToDoApi Xamarin: Native Android App Native Android App1

24 ASP .NET Core web API ToDoApi

25

26

27 Xamarin: Native Android App

28

29

30

31

32

33

34 Archive and Distribute

35

36 Ad Hoc Channel

37

38

39

40 Apps on Clouds!


Download ppt "11 Mobile Apps and Azure Cloud"

Similar presentations


Ads by Google