Sunday, August 13, 2017

APP Service (Application service from new portal)

Cloud Service comes under the Classic model.

Like Cloud service, we have  another mechanism for hosting  applications.

Various components of  APP Service:

1)Web App
2)Mobile App
3)Logic App
4)API App

What is WebApp?
 Web App  is a simple web application.

                                                                       Web App

Web App is a fully managed compute platform that is optimized for hosting websites and web applications.
This Platform-as-a-Service (Paps) offering of Microsoft Azure lets you focus on your business logic while Azure takes care of the infrastructure to run and scale your apps.
Your code can be in any language or framework that is supported by Azure App Service such as ASP.NET,Node.js,Java,PHP or Python.

What is Mobile App?
If you want a mobile client for application, we will create this.

What is API App?
API  apps in Azure App Service offer features that make it easier to develop, host and consume APIs in the cloud and on-premises.
With API apps you get enterprise grade security, simple access control, hybrid connectivity, automatic SDK generation and seamless integration with Logic Apps.


We will create an API service, which consists of all our RESTAPI's

We will be having all our REST API's and they might be having a native app,where  it will be having all our REST API's,whenever we want same RESTAPI,if we will be connecting to this particularly APP Service.

What is Logic App?

Whenever we want to create some kind of workflow, we will be making use of this Logic App.
When we require logic app, if  our application requires workflow.

Logic Apps provide a way to simplify and implement scalable integrations and workflows in the cloud.
It provides a visual designer to model and automate your process as a series of steps known as a workflow.

How to create a Web App?

Web  +  Mobile  >  Web app  >  

App name :  demo.azurewebsites.net
Subscription : Your organization Subscription
Resource Group : Create a new resource group
App Service plan/location : xxxxxxxxxxxxx
Application insights   off

What is Resource group?
Resource grouping is a kind of tagging.

It is a kind,I am creating the bucket.
I will create a bucket and putting all the required resources in to that bucket.
Such that, it will be easy from me to maintain.

Example:
I am a developer to test my functionality,I require the virtual machine and  created four resources for testing the functionality.

So I created the :
Virtualmachineabc
Storageabc
testDBabc
Cloudserviceabc

Once I done with my functionality testing.

I will create a resource group, which is called resourcegroup.

I am keeping all these four resources under this resourcegroupabc.

Once I am done with my functionality,we can delete that resource group.
(this is just for maintaining for user maintainence).

Created Web App.


What is this Service plan?

(Where you want to keep this resource)
It is a combination of subscription, pricing tier, your type of machines this is combination of four.

By default, the underlying technology is .net framework, if we want to change the application settings to any other framework, we can select the required framework and add the required properties to that.

Once the Web app is created, the deployment is successful.


Note:


this is the overview for the Web App.


Whenever we create a Web App,when we go to the URL.that is mentioned in the Web App service.


We can see the page (that is the default web page).


But when we do the cloud service,there is no web page displayed.



so that means the basic difference between the cloud service and web app.

Because the web app is having some underlying technology provided,all we need to do is,just create an application and we need to host our application there.

Rightnow,the page we are seeing is running through the .net framework.

How would know,that is running with the .net framework?
Righnow,we cannot identify the .net framework and but with the java application we can identify.


When we create a Web App,we can see with the Web App.
(A machine where IIS is already running,that means we are creating a default website and running thorugh that website).

It is always creating  a default website and approaching through that particular website.

Instead of,.net webapp,I want to go head with the Java Web App.

How can we do this?



For that go to the  >  Application settings


Note:

When  I created this web app,it is actually hosted with the  .net webapp.
 I want to host a webapp developed with the java:


What we did here?


Here we created the Web App,when we created the Web App,we got the .net framework hosted on that by default.

So,we have click on Application settings and changed all the properties to the Java Web application.


We have another options also,

Python version
Php version.

By this,we can say,we can create Web application based out of any platform.



Now ,coming to the Service plan:

Service plan is nothing but a combination of,what is my subscription and where I want to get it located and the pricing tier,when you say pricing tier,we can know what kind of machine it is seeing.when I say subscription it is combination of subscription name and subscription id.




Mobile App:

App name : user.azurewebsites.net
Subscription : xxxxxxxx
Resource Group : Create new resource group
App service plan/location : xxxxxxxxxx


Create 



>>  when we test the browser, the underlying technology is the .net framework and it is based on the IIS server.

Note:by testing the azure mobile app uri,we can say that the underlying technology for the mobile app is the .net framework and based on the IIS server.




Logic App


Name :  user
Subscription: Free trial
Resource group : Existing
Location : Central US

Create



There is no url provided for this,to browse through it.
When we here about the Logic App,we will think about creating the workflow.

API APP (API management)

when we are creating API APP,we have to give what is my administrative Email also.

Name : user.azure-api.net
Subscription : organizations
Resource group : existing resource group
location : Central US
Organization name : xxxxxxxxxx
Administrative email : xxxxxxxxxxx
Pricing tier : Developer (1M API calls,5GB data transfer).

Create


Keyconcepts:

If you want to integrate the HDinsight with the Hadoop concepts we will go with the HDinsight
When we are working point to site connection we will work on the Biztalk services.Azure framework will be creating the Biztalk service.
Marketplace:It is a kind of a store,we can create our own machine and it can be used by the other people.
 Settings are nothing but the setting of your azure subscription.



Theortical concepts of the Service bus:


In the old portal :

APP SERVICES  >   SERVICE BUS  >  1) QUEUE  2)RELAY 3)TOPIC 4)NOTIFICATION 5)EVENTS

Examples :

Imagine a case that,you have two services:

And those two services,should talk to each other.

Example:Imagine a case of Facebook,Facebook is a kind of umbrella service.
What are the main components of the Facebook?
I can view videos,I can comment (I get the status of the messages). And I can upload the audio files.



Different services related to the components of facebook,will be rendering these services to the facebook umbrella service (just for example,umbrella is not a service).it will be just drawing them.


Face book render  /display service
                  Videos
                   Text  / Emojis
                   Images
                   Audio files

facebook render / display services.(it will be just talking to all of these services) and it will be getting the data and it will be displaying them.

So,if this is happening like this.

For communicating the one service with the another services for this purpose we are  using the service bus.


Example :

There are two services like service A (Display service ) and service B  (video service).that should be displayed on the display service.


Such that video service will be sending the notification,so we will be having the service bus location,we will have at some place a service bus queue,so video service will be giving message or will be just pushing a message to that queue and display service will be reading from that queue.


And it will be acting based on the message.

Service bus is basically from service to service communication.



Queue is basically,it is also similar to the service bus,it is mainly for two services.

What is Topic and Relay?
Topic and Relay are for Broadcasting.


There will be one service for pushing the messages and more than one service will be subscribing to that message.whenever an event happens,that particular service will be pushing a message for that queue and all other services subscribed will be working accordingly.

There will be acting accordingly.

Example:


For example,you opened a gmail account and you also opened another one something related to the gmail service.what happens if you changed your gmail credentials.

As soon as I changed my credentials,my youtube is linked to that gmail.intially I did not logged in youtube with my gmail,so it will be suggest me the default recommmendations and when I logged with my gmail,it will show recommendations,based on my taste.

Once I  logged in to my account,basically what are the gmail services,it will be sending notifications to all the browsers.

In otherwords,all the services of google,will be waiting for a notification from one among them.

This is what happening in case of TOPIC.
(one service will be pushing a  message and rest of the other services will be subscribing to that message,whenever all the services will be acting accordingly).(this is a kind of one to many broadcasting).

Relay:

Relay is basically,one to one communication,so one guy will be subscribing to another guy and he will be handovering the message to another service that is from service A to service B.


























No comments:

Post a Comment