webinar series: azure advanced technologies in practice · building serverless applications means...

23
July 2019 Webinar Series: Azure Advanced Technologies In Practice Build Serverless Applications on Cloud

Upload: others

Post on 25-Jul-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing

July 2019

Webinar Series:

Azure Advanced Technologies In Practice

Build Serverless Applications on Cloud

Page 2: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing

Petros PetrouCloud Technical Leader

Get in touch:[email protected]

Page 3: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing

Series of 10 Webinars starting on 24 July 2019 and ending in October 2019

Based on the new Logicom’ s Azure Advanced Solutions Catalogue

One, 1-hour, Webinar for each Advanced Solution in the Catalogue

Simple and consistent webinar structure:– Business Need, Proposed Solution, Solution Abstract, Solution Details, Solution Demo (where possible), Q & A

Easy registration for each webinar in the series at https://cloud.logicom.net/events/

Watch on demand the webinars recording at https://cloud.logicom.net/webinars/

Share reference solutions for business problems with combinations of Azure services

What is Webinar Series About?

Webinar Series Details

Page 4: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing

• Azure Stack Hybrid Cloud Platform

• Build Serverless Applications on Cloud

• Build IoT Solutions on Cloud

• Build Intelligent Chatbots on Cloud

• Deliver Virtual Applications on Cloud

• Deliver Virtual Desktops on Cloud

• Big Data with Analytics on Cloud

• Securing & Monitoring Hybrid Cloud Environments

• Development & Testing in Cloud

• HPC Video Rendering in Cloud

Page 5: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing

Real life Business Requirement

Proposed Solution Abstract

Proposed Solution Details

o Solution Characteristics & Business Benefits

o Solution Architectural Components

o Deployment Guidance

o Solution Demo

o Solution Use cases

o Indicative Configuration

Q n A

Page 6: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing

Contoso, is a Retail Company that sells IT products to consumers and providing customer support for their product portfolio. In their continuous effort for self improvement, Contoso wants to get more insights on their customer’s opinion for their products and their customer support services.

The company needs a cloud solution that will monitor the social medial accounts as well as the customer support email exchanges and receive prompt notifications when a bad sentiment is recognized.

✓ Customer reviews should be taken both from email and social media✓ Receive email notifications with bad reviews in the form of an email✓ Highly scalable deployment with 99.9% or higher SLA✓ Quick development with fast time to market✓ Low code development environment✓ Pay only for resources consumed in a PAYG model

Business Need

Requirements

How can we help?

Page 7: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing

Build Serverless Applications on Cloud

Solution Abstract✓What is Serverless Computing

✓Why Serverless Computing

Page 8: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing

Why Serverless Computing matters?

Building serverless applications means that developers can focus on their core product instead of worrying about managing and operating servers or runtimes, either in the cloud or on-premises. This reduced overhead lets developers reclaim time and energy that can be spent on developing great products which scale and that are reliable.

Fully managed services

Only pay for resources used

Automated High Availability

Serverless computing is the abstraction of servers, infrastructure, and operating systems. When serverless apps are build there is no need to provision and manage any servers, so infrastructure concerns can be ignored. As a fully managed service, server management and capacity planning are invisible to the developer and billing is based just on resources consumed or the actual time the code is running.

What is Serverless Computing?

Page 9: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing

Build Serverless Applications on Cloud

Azure Solution Details✓ Azure Resources

✓ Solution Characteristics and Business Benefits

✓ Solution Architectural Components

✓ Key points of Consideration

✓ Implementation steps

✓ Solution Demo

✓ Indicative Configuration

✓ Solution Use cases

Page 10: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing

Azure Logic Apps is a serverless service that helps to automate and orchestrate tasks, business processes, and workflowswhen needed to integrate apps, data, systems, and services across enterprises or organizations.

Logic Apps simplifies how to design and build scalable solutions for app integration, data integration, system integration, Enterprise Application Integration (EAI), and Business-to-Business (B2B) communication, whether in the cloud, on premises, or both.

What is Azure Logic Apps service?

Why use Azure Logic Apps?

✓ Create business processes and workflows visually

✓ Integrate with SaaS and enterprise applications

✓ Unlock value from on-premises and cloud applications

✓ Quickly build powerful integration solutions

✓ Automate EAI, B2B/EDI, and business processes

✓ Take advantage of the Microsoft Cloud to enhance integration solutions

With businesses moving toward digitization, logic apps helps connecting legacy, modern, and cutting-edge systems more easily and quickly by providing prebuilt APIs as Microsoft-managed connectors. You don't have to worry about building, hosting, scaling, managing, maintaining, and monitoring your apps.

Page 11: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing

Azure Functions is a serverless compute service that enables to run code on-demand without having to explicitly provision or manage infrastructure. It provides an event driven, compute-on-demand experience that extends the existing Azure application platform with capabilities to implement code triggered by events occurring in Azure or third party service as well as on-premises systems.

Azure Functions is a great solution for processing data, integrating systems, working with the internet-of-things (IoT), and building simple APIs and microservices. With Azure Functions companies scale on demand and pay only for the resources consumed.

What is Azure Functions?

Why use Azure Functions?

Manage Applications Instead of Infrastructure

Optimized for Business Logic

Develop your Way

Page 12: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing

Related Azure Resources

Deploy a solution using Azure Functions & Logic Apps

✓ 99.95% availability SLA✓ Choice of language between C#, F#, or JavaScript✓ Bring own dependencies in Functions using Nugget & NPM✓ Protect HTTP-triggered functions with OAuth providers✓ Easily leverage Azure services and (SaaS) offerings✓ Functions runtime is open-source and available on GitHub

Solution Characteristics

Business Benefits

✓ No infrastructure needed✓ Start small and scale as necessary✓ No developer knowledge needed workflows✓ Mix and match according to business need✓ Pay only for what used and only when it runs

Optional Azure Resources

App Service PlanMicrosoft

App ServiceMicrosoft

Azure Application InsightsMicrosoft

Visual StudioMicrosoft

Azure Functions Consumption Plan

Logic App Microsoft

Fun

ctio

ns

Logi

c A

pp

s

✓ 99.9% availability SLA✓ Write once, reuse often✓ Built-in extensibility✓ Visually build workflows with easy-to-use tools✓ Get started faster with logic app templates✓ Connect disparate systems across different environments

Log AnalyticsMicrosoft

Cognitive ServicesMicrosoft

Event GridMicrosoft . . .

Azure Functions App Service Plan

Page 13: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing
Page 14: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing

• You can choose between Functions and Logic Apps or combine, depending on business scenario. Here is how they compare

• Functions support additional languages, currently in experimental release, like PowerShell, Python, PHP, Bash, Batch and Typescript (Details)

• Azure Functions consumption plan is billed based on per-second resource consumption and executions (Details)

• With Azure Functions Proxies developers can specify endpoints on the function app that are implemented by another resource. They provide a subset of features that an application gateway could provide for function instances (Details)

• Azure Insights can optionally be used to monitor Function Apps healthiness and performance (Details)

• You can use a variety of Functions Triggers to invoke Function apps and Bindings to connect to data from within the app (Details)

• Logic Apps must be designed within the service limits (Details)

• Logic Apps offer ~200+ built-in and managed application connectors that can be used in workflows, also categorized in Standard and Enterprise and Integration Accounts. (Details)

• Every time a Logic App definition runs the triggers, action and connector executions are metered and charge (Details)

• Log Analytics can optionally be provisioned and used with Logic Apps (Details)

Page 15: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing

1. Plan and design workflow deployment

1. Review Logic Apps Documentation

2. Review Azure Functions Documentation

2. Create a Resource Group

3. Create a Logic App in Azure Portal1

1. Create an App from prebuild templates

2. Create a blank Logic App and build from scratch (example)2

4. Create a Function App in Azure Portal3

5. Create an HTTP Triggered Function (example)*

6. Call Function App from Logic App

7. Develop the code and deploy in the Function App3

8. Test the function & run the Logic App workflow

9. Monitor Azure Function App with Application Insights

10. Monitor Logic App with Log Analytics4

*Deployment Guide refers to a Logic App workflow that calls a Function App for processing and returning a result into the workflow

1. One or more Logic Apps can be created according to the business scenario. Each Logic App can handle only one workflow. Logic Apps can be avoid if not needed.2.A blank logic app gives the flexibility to create a workflow from all feature and options available in Logic Apps. Reference example showcases the process3. One or more Function Apps can be created according to the business scenario4. A Log Analytics workspace is needed

Page 16: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing

Demo

Solution Abstract✓ Create Function App

✓ Create Text Analytics AI

✓ Create Text Translator AI

✓ Create Logic App

✓ Create Workflow

Page 17: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing

Indicative configuration and pricing summaryMicrosoft Azure Estimate

Check #Logicom on tweeter for new tweets, perform sentiment analysis, categorize tweets as green, yellow or red based on the sentiment score and send email when poor sentiment is detected.

Service type Requirements Region Description Estimated Cost

Logic Apps Logic App - Workflow

-Run on a monthly basis

-Average 1 tweet/minute

-Estimate 10% poor sentiment

-Check # Logicom on tweeter every 1 minute:

60x24 = 1440 Connector actions/day

-Call Text Analysis Service 1 tweet per minute:

60x24 = 1440 Connector actions/day

- Call Azure Function feeding text analysis score

60x24 = 1440 Built-In actions/day

-Send an email on poor sentiment:

60x24x10% = 144 emails/day

Keep roughly 1gb of data per month

West Europe 3000 Action Executions x 30 day(s), 1440 Standard Connector Executions x 30 day(s), 0 Enterprise Connector

Executions x 1 day(s); 0 Standard Integration Accounts x 730 Hours, 0 Basic Integration Accounts x 730 Hours; 1 GB

Data Retention.

$7.77

Cognitive Services Tweet - Text Analysis & Return Score

-Check # Logicom on tweeter every 1 minute:

60x24 = 1440 Connector actions/day

West Europe Text Analytics: Free size, 5,000 included transactions with 0 overages. $0.00

Functions Function - Analyze Score & Return Color

Category

- Call Azure Function feeding texty analysis

score

60x24 = 1440 Built-In actions/day

West Europe 256 MB memory, 300 sec execution time, 5,000 executions/mo $0.00

Azure Monitor Application Insights West Europe 5 GB Logs collected, 0 Multi-step Web Tests $0.00

Storage Azure Functions - Storage West Europe Block Blob Storage, General Purpose V2, LRS Redundancy, Hot Access Tier, 5 GB Capacity, 10,000 Write operations,

10,000 List and Create Container Operations, 100,000 Read operations, 0 Other operations. 5 GB Data Retrieval, 5 GB

Data Write

$0.25

Monthly Total $8.02

Annual Total $96.23

Disclaimer

All prices shown are in US Dollar ($). This is a summary estimate, not a quote. For up to date pricing information please visit https://azure.microsoft.com/pricing/calculator/

This estimate was created at 11/29/2018 3:12:24 PM UTC.

Page 18: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing

Create Small Applications

Combine Azure Logic Apps and Functions, integrate with other Azure services if necessary and create small and simple apps effortlessly in a timely manner while controlling costs

Logic Apps has democratized automating business processes along with Azure Functions, acting as the connective tissue of Azure, reducing development time and costs.

The majority of software development workflows require application orchestration. Azure Logic and Function Apps provide the ability to quickly integrate with various applications and supports data manipulation and mediation of message flows

Invoking Functions with Logic Apps helps in easily automating processing workflows for Web, Mobile and Business application back-ends paying only on for resources used.

Back-end processing workflows

Systems Communication

Business Processes

Page 19: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing

Questions?

Page 20: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing

LogicomGet in Touch

Page 21: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing
Page 22: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing

• Azure Stack Hybrid Cloud Platform

• Build Serverless Applications on Cloud

• Build IoT Solutions on Cloud

• Build Intelligent Chatbots on Cloud

• Deliver Virtual Applications on Cloud

• Deliver Virtual Desktops on Cloud

• Big Data with Analytics on Cloud

• Securing & Monitoring Hybrid Cloud Environments

• Development & Testing in Cloud

• HPC Video Rendering in Cloud

Page 23: Webinar Series: Azure Advanced Technologies In Practice · Building serverless applications means that developers can focus on their core product instead of worrying about managing

Logicom Cisco Distribution Playbook23| Introduction | Strategy | Architectures | Services | Marketing | Operations | Meet the Team

23