Giter Site home page Giter Site logo

openfaas-jvm-afterburn-template's Introduction

JVM OpenFaaS Afterburn

OpenFaas JVM template supporting afterburn with the new watchdog implementation. This is an answer to the cold start problem when using the serverless architecture.

Build and Deploy to OpenFaaS

faas-cli template pull https://github.com/amirkarimi/openfaas-jvm-afterburn-template
faas-cli new --lang jvm-afterburn jvm_burner

faas-cli build -f jvm_burner.yml
faas-cli deploy -f jvm_burner.yml
echo test | faas-cli invoke jvm_burner

Update the function

You just need to generate a JAR file using your favorate langauge and tools, rename the JAR file to app.jar and copy to the function folder.

Run watchdog locally

This is useful for testing/debugging purposes.

  • Build the new version of watchdog supporting Afterburn. Navigate to another dir.
git clone [email protected]:openfaas-incubator/of-watchdog.git \
cd of-watchdog \
./build.sh
  • Copy of-watchdog to a where the main JAR file exists

  • Run watchdog:

mode=afterburn fprocess="java -jar app.jar" ./of-watchdog
  • Send the requests to localhost:8081

openfaas-jvm-afterburn-template's People

Watchers

 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.