Posts

Showing posts with the label Netty

Spring Boot 2 running with Netty

Image
Spring Boot 2 - It's the default Java way to implement REST endpoints and microservices nowadays. I really miss old days of spring where we used XML and there was no coupling and spring was really lightweight. IMHO Spring is great if you use it under a service, If you use a shared library of the big framework, you can easily get Binary Coupling which will be bad for you in the long run.  Today I want to show how easy is to use Netty. Using netty directly is not that hard and really anyone can use without spring. Netty comes as default dependency if you use webflux instead of the web. So Let's get started. Video Code https://github.com/diegopacheco/java-pocs/tree/master/pocs/spring-boot-2-netty-fun Cheers, Diego Pacheco

Actix(Rust) it's blazing fast

Image
I'm a performance aficionado. I always will be :-). However, performance is a tricky thing. It always depends on the use case. There are several things could affect a benchmark like: * Hardware * Payload size * Kind of Operation * Time * Configurations / Tunings * Warm-Up * What the code does and how I never like the blind discussions saying this server is always better than that server because I knew use cases are everything. Performance is important and in the cloud, it leads to other things like Scalability and Costs. Great performance allows better scalability, therefore it reduces costs because you do more with fewer resources(machines or containers).