Microservices Flashcards

(28 cards)

1
Q

explain Azure microservices

A

Building applications on the Microsoft Azure cloud platform
-microservices architectural style
-application broken into small, independent and loosely coupled services
-each service responsible for a specific business function
-each service can be developed, deployed, and scaled independently

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is a docker file?

A

static representation of application
instructions for docker engine to execute and create a static image of application
prebuilt package

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

explain Decoupled Services

A

Each service is a separate codebase managed by a small, focused team.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Independent Deployment

A

Teams can update and deploy existing services without rebuilding or redeploying the entire application.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Communication via APIs

A

Microservices communicate with each other through well-defined APIs, typically using lightweight protocols like HTTP/REST

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Data Isolation

A

Each microservice is responsible for:
- persisting its own data
- often using a polyglot persistence approach (mixing SQL and NoSQL databases as needed)
- polyglot persistence avoids hidden dependencies.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Fault Isolation

A

If one microservice fails, it does not disrupt the entire application, as the other services can continue to function.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Azure Services for Microservices advantages

A

Azure provides several options for hosting and orchestrating microservices, allowing developers to choose the approach that best fits their needs.

IaaS PaaS SaaS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Azure Kubernetes Service (AKS)

A

A managed Kubernetes service that is a common choice for orchestrating containerized microservices. AKS handles the complexities of deploying, scaling, and managing Docker containers across a cluster.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Azure Container Apps

A

A managed, serverless platform built on Kubernetes that simplifies the deployment and management of microservices.
Ideal for scenarios:
- where direct access to the underlying Kubernetes APIs is not needed
- provides built-in scaling and service discovery features.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Azure Service Fabric

A

A distributed systems platform that provides extensive control over the infrastructure and offers APIs for building highly reliable, stateful microservices.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Azure Functions

A

A serverless compute service that allows running small, event-triggered microservices without managing infrastructure. You only pay for the time your code runs, making it cost-effective for event-driven architectures.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

A full microservices architecture on Azure also utilizes supporting services for management and operations. What are some supporting services?

A

API Gateway
Message Brokers
Observability Tools
CI/CD Pipelines

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

API Gateway

A

API Gateway: Manages ingress traffic, routing requests to the appropriate backend services and handling cross-cutting concerns like authentication and load balancing. Azure API Management can fulfill this role.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Message Brokers

A

Services like Azure Service Bus and Azure Event Grid enable efficient asynchronous communication between services.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Observability Tools

A

Azure Monitor and Application Insights help in centralized logging, monitoring, and distributed tracing to maintain system health and performance.

17
Q

CI/CD Pipelines

A

Azure Pipelines (part of Azure DevOps) or GitHub Actions automate the build, test, and deployment processes for individual services.

18
Q

Orchestrator

A

manage applications in containers in a cluster???
example: Kubernetes

19
Q

docker compose

A

full featured orchestrator???

20
Q

docker compose file

A

instructions for building and running multiple files, config file ???

21
Q

how do you write instructions in the compose file?

22
Q

how do you build a docker image and how do you communicate with microservice?

23
Q

How do you deploy your application?

24
Q

kubernetes architecture

A

Orchestrator platform
Abstracts your infrastructure
looks at desired vs actual state of application
master node/worker node
API server control manager, scheduler

25
worker node
parts simple abstraction layer of applications parts multiple container running in a single part single, multiple
26
kubernetes architecture
actual vs desired state, tries to recover from crashes abstraction of tasks dynamic scaling rolling updates
27
why is an orchestrator useful in a microservice architecture?
In Azure microservices architecture, an orchestrator is useful because it provides a centralized control point to manage and coordinate complex business workflows involving multiple independent services. This simplifies the overall system, allowing individual microservices to focus solely on their specific business functions.
28