Coder Social home page Coder Social logo

Comments (4)

stevehu avatar stevehu commented on July 26, 2024 5

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.

hydra1983 avatar hydra1983 commented on July 26, 2024

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.

smaldini avatar smaldini commented on July 26, 2024

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.

stevehu avatar stevehu commented on July 26, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.