Microservices Flashcards

1
Q

What is the role of an API gateway?

A

An API gateway acts as a middleware and is used to manage and organize API calls from outside the client, as well as authorize and authenticate calls

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

What is a fuse mechanism?

A

The fuse mechanism is used to prevent an avalanche, the cascading failures of multiple services, by returning a default value rather than having the program fail entirely

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

How do microservices communicate with one another

A

Microservices are able to communicate with one another using APIs and HTTP

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

What are the two methods to scale microservice

A
  1. Horizontal Scalability - adding more servers to run your service
  2. Vertical Scalability - increasing the power/storage in your servers to be able to run services
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a circuit breaker?

A

Similar to a fuse, a circuit break prevents a cascading failure once an exception has been thrown and provides a default service to prevent the service from crashing

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

What is Hystrix

A

Hystrix is a circuit breaker which isolates failure and prevents errors from cascading across microservices
(Annotation: @HystrixCommand(fallbackMethod = “…”)

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

What is versioning?

A

Versioning is used to differentiate between different versions of APIs which may have been updated to accommodate for design changes

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

What is HikariCP used for?

A

Hikari is a database connection pool used to store database connection so that they can be reused when needed

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

How do you make multiple service calls simultaneously?

A

Using reactive programming and Spring WebClient

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