Comments (4)
Spring Boot is one of the most popular frameworks to build microservices and the services built on both platforms can talk to each other. Some of the components like mask, config etc. in light-java can be used by Spring Boot application but majority of the modules are middleware components that cannot be used in Sprint Boot. In my opinion, Spring Boot is too heavy to build microservices as it is slow and use a lot of memory.
I have done a real banking transaction service in Light-Java in comparison with Sprint-Boot(Undertow embedded) implemented by one of the world leading consulting firms for one of my clients and here is the result. (Sorry, the code cannot be open sourced)
Spring-Boot Throughput: 212.97 req/sec Latency: 66.07ms Memory: 1.5GB
Light-Java Throughput: 2319.34 req/sec Latency: 11.39ms Memory: 300MB
When you are deploying hundreds or thousands services within your organization, the infrastructure cost difference is huge. You need 10 time more medium t-shirt VMs to have the same throughtput with 1 Light-Java instance on small t-shirt VM. And to bring the response time to the same level, you will need a lot more Spring-Boot instances.
from light-example-4j.
Got it. I'm going to remove spring boot from my micro service arch as well. As it consumes too much mem as you mentioned. Thanks for your sharing of the result.
from light-example-4j.
The spring boot reactive story is not released, what are you testing exactly, also please avoid benchmarking the 4 years old 1.1.0.M3 reactor we have now much more recent versions aligned with Spring 5 and Spring Boot 2 see the projectreactor.io code for only reactor https://github.com/reactor/projectreactor.io/blob/master/src/main/java/io/projectreactor/Application.java and https://github.com/bclozel/spring-reactive-university/tree/master/src/main/java/com/example for a spring boot app.
from light-example-4j.
@smaldini Spring-Boot Reactor actually performs very good even with a very old reactor. I am wondering if you could help to upgrade to the latest version. I am very curious how it performs. Thanks for the info.
from light-example-4j.
Related Issues (20)
- update tableau client for local, tableau and google calls in the same method
- update market api to remove unused config file and upgrade dependency
- disable the metrics for petstore-maven-single
- add log application for springboot
- expose all actuator endpoints from spring boot log API
- update market API with the latest light-4j version
- regenerate petstore-maven-multiple with the latest light-codegen
- update proxy-backend to sync with the latest codegen
- update cors to sync with the latest codegen
- remove rest petstore-maven-single-upgrade
- update the kafka-streams-dsl configuration
- update client pool test dependency and add post request
- add kafka-sideca kafka-streams-processor-api
- add pre-commit-config.yaml and appy it
- change logger-config to logger-handler in pom.xml
- add lambda-zip and lambda-native examples
- upgrade http-client to 1.0.11 for java11-client
- remove lambda-native examples as we have lambda-petstore and lambda-market repos
- upgrade aws lambda dependencies
- update petstore-maven-single client and server keys and certs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from light-example-4j.