Hystrix

Java Microservices Circuit Breaker

What is the pattern used in Hystrix to terminate external call if the service call fails?
Circuit Breaker Pattern
What is the default value for thread pool size?
10
Which is the correct property to set maximum concurrent request using Semaphore Strategy?
HystrixCommandProperties.Setter() .withExecutionIsolationSemaphoreMaxConcurrentRequests(int value)
HystrixCommandProperties.Setter() .withExecutionTimeoutInMilliseconds(int value); This piece of code is used to set Execution timeout property.True
What is the default value for Execution Isolation Strategy property?
Semaphore
To which state does the Circuit breaker move into after sleep window?
HALF OPEN
What is the fallback method used for Hystrix Observable command
HystrixObservableCommand.getFallback()
In the case of a HystrixObservableCommand, HystrixObservableCommand.resumeWithFallback() is used.
Turbine is used to monitor a cluster of servers.
Find the pattern used in the below code snippet. @Override protected String getFallback() { return null; }
Fail Silent
Which of the following is not a execute command for an observable command?
observe()
execute() — (synchronous execution) returns the single response from the service.
execute() method is called to run the command in asynchronous mode.--False
queue() — (asynchronous execution) returns a Future that can be used to retrieve the response from the service.
observe() — (Hot Observable) returns the observable only when the client subscribes to it.
toObservable() — (Cold Observable) returns an Observable, which when you subscribe, it will execute the Hystrix command and emit its responses.
This technique will ensure consistent request across all codes that involves multiple functionality.
Request Caching
What is the default value for enabling request cache for Hystrix Collapser?
False
IN Fail Silent pattern, you simply return an empty response.
True
What is the cost of using Request Collapsing?
threadpool usage
Which of the following are included in the Metrics data provided by Hystrix dashboard?
all
Which of the following is a correct Hystrix Command object creation?
HystrixCommand command = new HystrixCommand(arg1, arg2);
HystrixObservableCommand command = new HystrixObservableCommand(arg1, arg2);
Which of the following is an invalid technique for request collapsing?
globally scoped
request scoped (collects a group of requests for request collapsing in a specific Hystrix request).
globally scoped (collects a group of requests for request collapsing across multiple requests).
Which of the following is not a valid Isolation strategy property?
FUNCTION
Which of the following is the syntax for executing hystrix command?
helloWorldCommand.queue()
In Fail Fast pattern, you have to implement getFallback() method.False
Which of the following the correct method to implement fallback?
getFallback()
Which of the following is an invalid technique for request collapsing?
session scoped
What is the syntax to construct a thread Pool Key?
HystrixThreadPoolKey.Factory.asKey("Test Pool”)
Which of the following error types does not throw HystrixRuntimeException?
FAILURE
Every dependency has a separate thread pool allocation to implement __Bulkhead pattern___________ pattern.
Which of the following fallback pattern returns a static value defaulted in code?
What are the key items preferred to be added to application?
What is the default number of concurrent request to external system allowed?200
What is the default value for enabling request cache for Hystrix Collapser?True
Calls to dependencies happens in a separate thread in ______ model.Threads and Thread Pool
Hystrix is mainly used to avoid ____________.cascading failures
_______ team came up with the Hystrix library.
Request caching eliminates _________.
In Fail Fast pattern, you have to implement getFallback() method.False
What is the default timeout provided by Hystrix?1000 ms
What are the key items preferred to be added to application?
Request Collapsing is majorly used while executing ___________.bacth
What is the default number of concurrent request to external system allowed?
metrics.rollingStats.numBuckets’ property is used to ______.Sets the number of buckets for which the rolling window is partitioned
What is the technique used in hystrix to collapse multiple request into single request?Request Caching
What is the default value for Execution Isolation Strategy property?thread

Leave a Reply

Your email address will not be published.