Microservices Flashcards
(9 cards)
What is the role of an API gateway?
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
What is a fuse mechanism?
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 do microservices communicate with one another
Microservices are able to communicate with one another using APIs and HTTP
What are the two methods to scale microservice
- Horizontal Scalability - adding more servers to run your service
- Vertical Scalability - increasing the power/storage in your servers to be able to run services
What is a circuit breaker?
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
What is Hystrix
Hystrix is a circuit breaker which isolates failure and prevents errors from cascading across microservices
(Annotation: @HystrixCommand(fallbackMethod = “…”)
What is versioning?
Versioning is used to differentiate between different versions of APIs which may have been updated to accommodate for design changes
What is HikariCP used for?
Hikari is a database connection pool used to store database connection so that they can be reused when needed
How do you make multiple service calls simultaneously?
Using reactive programming and Spring WebClient