Giter Club home page Giter Club logo

serverless-java's Introduction

Experimenting with different Java frameworks for Serverless performance

Quick experiment of different Java frameworks and nodejs (Express) to build apis for container and serverless.

SpringBoot although the most widely used and popular framework for java web-apps, its boot time was a bit slow which can be an issue in serverless environments where functions need to spun up for the new requests as they come in. After the start up however, the subsequent requests are processed pretty fast. This repository contains four projects built with springboot, nodejs, and two newer java frameworks quarkus and micronaut that are promoted as being serverless and container first. All of these projects expose same endpoint and process posted data by executing the same logic. After running some tests,

SpringBoot and micronaut versions had the longest cold start ~ 9.7 seconds, nodejs had very short cold start time of just 48ms, quarkus had a comparable cold start up time of 63ms.

After the cold start however, SpringBoot was fastest with response time of 0.89ms, followed by quarkus 1.05ms, micronaut 1.1ms and nodejs 1.7ms.

Quarkus seems interesting and need to play with a bit more, but after a brief exploration, found it provides similar rapid application development experience. It also comes with very reliable and fast live reloading so you can develop from hello world to production code without havinng to restart the local dev server.

serverless-java's People

Contributors

achalise avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

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.