Search This Blog

Q26-Q30

Q26. What is Docker? How it is different from container?
Q27. What is azure Kubernetes Service, AKS?
Q28.  What are Cluster and Nodes in microservices?
Q29. What are the different types of storages options provided by azure?
Q30. What types of Messaging options we have azure? 

----------------------------------------------------------------------------------------------------------------------------------------
Q26. What is Docker? How it is different from container?

Answer:
Docker is a platform that allows developers to build, deploy, and manage applications inside containers. It provides a consistent environment for applications, ensuring they run the same way regardless of where they are deployed.

Containers, on the other hand, are lightweight, standalone, and executable software packages that include everything needed to run a piece of software, such as code, runtime, system tools, libraries, and settings. Containers virtualize the operating system, allowing multiple containers to run on the same machine while sharing the OS kernel

----------------------------------------------------------------------------------------------------------------------------------------
Q27. What is azure Kubernetes Service, AKS?

Answer:
Azure Kubernetes Service (AKS) is a managed Kubernetes service provided by Microsoft Azure. It simplifies the deployment, management, and scaling of containerized applications using Kubernetes

AKS reduced the complexity and operation overhead of health monitoring, maintenance, scaling for you in comparison to plain old K8s.
AKS integrate seamlessly with other Azure services and devops tool. K8 is more time taking activity. 
AKS has built in security features while K8 its our duty to keep security intact.

----------------------------------------------------------------------------------------------------------------------------------------
Q28.  What are Cluster and Nodes in microservices?

Answer:
Cluster: A network-connected set of virtual or physical machines into which your microservices are deployed and managed. Clusters can scale to thousands of machines. 

Node: A machine or VM that's part of a cluster is called a node. Each node is assigned a node name.
----------------------------------------------------------------------------------------------------------------------------------------
Q29. What are the different types of storages options provided by azure?

Answer:
Azure storage include - Blob, table, files and queues and VM Disks

Blog Storage is basically storage for unstructured data that can include pictures, videos, music files, documents, raw data, and log data

Table storage, as the name indicates, is preferred for tabular data, which is ideal for key-value NoSQL data storage. Table Storage is massively scalable and extremely easy to use. Like other NoSQL data stores, it is schema-less and accessed via a REST API

Queues: You can store large numbers of messages to be shared between independent components of applications and communicated asynchronously via HTTP or HTTPS


----------------------------------------------------------------------------------------------------------------------------------------
Q30. What types of Messaging options we have azure?

Answer:
Azure has multiple types of messaging services. 
  1. Azure Service Bus
    1. Azure Service Bus Queue - Point to point communication. One receiver
    2. Azure Service Bus Topics and Subscription
  2. Azure Storage Queues: used for large number of messages where message size is big. 
  3. Azure Event Grid: Event driven architecture. Real time event processing. 
  4. Azure Event Hub: Ingest millions of events per sec. Used in IOT devices. Streaming of events. Save streamed data to Azure Data Lake.
----------------------------------------------------------------------------------------------------------------------------------------

Q21-Q25

Q21. Difference between Azure Functions and Azure Logical apps?
Q22. What is WebApp, API App and Mobile App in Azure? are they different from App services?
Q23. 
Q24. Difference between Azure Functions and Azure app service WebJobs as both are code first approach?
Q25. How you call azure functions from your angular code?
=======================================================================
Q21. Difference between Azure Functions and Azure Logical apps?

Answer:
Both are PAAS.

Azure Functions:
1. Azure functions are serverless compute service design to run small piece of code. It's ideal for building microservices, APIs. They are good in event handling tasks. 
2. Azure functions are code first approach. 
3. Azure functions can run in various environments like self-managed servers, locally, azure, containers. 
4. Automatically scales based on demand.
5. Ideal for real time processing, background tasks and lightweights APIs. 
6. You have two options qua pricing. You can opt for a fixed cost of an App Service Plan. In that option you reserve compute power on which you can run Azure Functions, but also Web, Mobile and API Apps. The second option is completely serverless, with a consumption plan based on resource consumption (memory/s) and number of executions


Azure Logical Apps:
1. Azure LA are workflow automation service helps to integrate different apps, data, systems and services.  It is designed to do orchestrating difficult workflows with minimal code. 
2. L Apps are design first approach. u can do in Visual studio with designer plugin. 
3. L Apps can be run only in Azure. 
4. Autoscales 
5. Best for business process automation, integrating disparate systems, and orchestrating complex workflows.

=======================================================================
Q22. What is WebApp, API App and Mobile App in Azure? Are they different from App Services?

Answer:

App Services now replaces all Mobile, Api and Web Apps flavors as a single app framework with all the functionality rolled over to make things more accessible across application types. Currently all of Web, Mobile and Api Apps are collectively called App Services under Azure App Service Plan. We still offer customer to be able to create a Mobile App and a Web App in the gallery but that is basically resolve into an App Service App.

Microsoft Azure App Services are a platform as a service (PaaS) offering

various App services available
  1. Web App - ideal for web applications, CMS, e commerce websites. 
  2. API App - Ideal for hosting APIs that can be consumed by Web Apps.
  3. Mobile App - Ideal for work like Authentication, data sync and push notifications.
  4. Logic App - Workflows.
  5. Functions - Code first.
  6. Web jobs - backend Jobs hosted within same server where WebApp is hosted. It can be found with in settings section of newly created WebApp. 
=======================================================================
Q23. 

Answer:

=======================================================================
Q24. Difference between Azure Functions and Azure app service webjobs as both are code first approach?

Answer:
Both are built on Azure app service.
Both supports Code first approach. 
Both can integrate with application insight. 
Both Supports multiple languages like C#, JavaScript, Python, Java

Azure Functions
  • Two plans 1) Consumption plan/ Pay-per-use plan and 2) App Service plan
  • In-browser development is supported. 
  • Integration with Logical Apps

Azure app service WebJobs
  • Can be paid only as a part of App service plan. 
  • In-browser development is Not supported. 
  • No Integration with Logical Apps

=======================================================================
Q25. How you call azure functions from your angular code?

Answer:
It would be Http trigger function and from angular service layer you have to make simple httppost request where functionURI is the URI to the azure function.
this.http.post(functionURI, input, { headers: headers } ).subscribe(data => { console.log(data); });
Here is my simple HTTP trigger function using Javascript:

module.exports = function (context, req) {
    context.log('JavaScript HTTP trigger function processed a request.');

    if (req.query.name || (req.body && req.body.name)) {
        context.res = {
            // status: 200, /* Defaults to 200 */
            body: "Hello " + (req.query.name || req.body.name)
        };

    } else {
        context.res = {
            status: 400,
            body: "Please pass a name on the query string or in the request body"
        };
    }
    context.done();
};

=======================================================================