Eureka - How to replace it without a headache

Intro Eureka is primarily used in the AWS cloud for the purpose of discovery, load balancing and failover of middle-tier servers. As it have not received updates recently and there are solutions with some advantages over it, it’s not rare to see companies that have migrated or are migrating to other solutions. Scenario I worked for a company that started using Netflix’s OSS in 2014. Since this time Eureka was the main service used to discover and register all microservices....

January 24, 2022 · 3 min · Fernando

Spring and Coroutines - Quick Tips

This will be a fast-paced sequence of tips for using Kotlin Coroutines with Spring. Tip 1 If you need transactions, don’t forgot to use the @EnableTransactionManagement annotation. Tip 2 Probably you do not want to .subscribe to your Mono/Flux instances like in the example below: 1 2 3 4 5 6 7 8 9 10 suspend fun handleSomeRequest(request: ServerRequest): ServerResponse { val someNewEntity = SomeEntity() someEntityRepository.save(someNewEntity).subscribe() // some other stuff....

February 15, 2021 · 1 min · Fernando