I hereby claim:
- I am joseronierison on github.
- I am joseronierison (https://keybase.io/joseronierison) on keybase.
- I have a public key ASAQXoKyBrbVxSAAE-JSOp4WuP24hvRpPXDKUMBM5kp_swo
To claim this, I am signing this object:
version: '3' | |
services: | |
zookeeper: | |
image: confluentinc/cp-zookeeper:latest | |
networks: | |
- broker-kafka | |
environment: | |
ZOOKEEPER_CLIENT_PORT: 2181 | |
ZOOKEEPER_TICK_TIME: 2000 |
I hereby claim:
To claim this, I am signing this object:
package utils; | |
import lombok.EqualsAndHashCode; | |
import java.util.Objects; | |
import java.util.concurrent.Callable; | |
import java.util.function.Function; | |
@EqualsAndHashCode | |
public abstract class Try<V> { | |
private V value; |
val user: User = User("user-x") | |
def getUserProfile(user): Future[UserProfile] = ??? | |
def getUserPermissions(user): Future[UserPermissions] = ??? | |
def getMetrics(user): Future[String] = ??? | |
//Even if the parsing throws an exception, it is handled with Try monad then always return something compositional | |
def parseMetrics(metrics: String): Try[List[Metrics]] = { | |
Try(parseJsonFromAnyLib(metrics)) | |
} |
package commands | |
import com.netflix.hystrix.HystrixCommand | |
import com.netflix.hystrix.HystrixCommand.Setter | |
import com.netflix.hystrix.{ HystrixCommandGroupKey, HystrixCommandKey, HystrixCommandProperties } | |
import com.netflix.hystrix.HystrixCommandProperties.ExecutionIsolationStrategy | |
object GetDependencyCommand { | |
final def settings: Setter = Setter | |
.withGroupKey(HystrixCommandGroupKey.Factory.asKey("get-dependency-group")) |