Micro-Service & APis Flashcards

(10 cards)

1
Q

What are microservices?

A

Microservices architecture structures an application as a collection of small, independent services. Each service runs its own process, has its own database, and communicates via APIs.

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

What is the difference between monolithic and microservices architecture?

A

Monolithic: single codebase, shared database, deployed as one unit. Microservices: multiple independent services, separate databases, deployed independently. Microservices offer flexibility but add complexity.

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

What are the benefits of microservices?

A

Benefits include: independent deployment, technology diversity, fault isolation, easier scaling, team autonomy, and better suited for large complex applications.

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

What are the challenges of microservices?

A

Challenges include: distributed system complexity, network latency, data consistency, testing difficulty, deployment overhead, monitoring complexity, and increased operational burden.

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

What is service discovery?

A

Service discovery allows services to find and communicate with each other without hard-coded addresses. Tools like Consul, Eureka, or Kubernetes DNS enable dynamic service location.

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

What is an API Gateway?

A

An API Gateway is a single entry point for client requests that routes to appropriate microservices. It handles authentication, rate limiting, request routing, and response aggregation.

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

What is REST API?

A

REST (Representational State Transfer) is an architectural style using HTTP methods (GET, POST, PUT, DELETE) for stateless communication. It uses resources identified by URLs.

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

What is GraphQL?

A

GraphQL is a query language for APIs that lets clients request exactly the data they need. Unlike REST, it uses a single endpoint and allows flexible queries with nested data.

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

What is gRPC?

A

gRPC is a high-performance RPC framework using Protocol Buffers for serialization. It supports bidirectional streaming and is faster than REST but less human-readable.

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

What is the Circuit Breaker pattern?

A

Circuit Breaker prevents cascading failures by stopping requests to a failing service. It has three states: Closed (normal), Open (failing, reject requests), Half-Open (testing recovery).

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