DEV Community

Cover image for Knative : the easy way to serverless a java app
Daniel Santos for opt-nc

Posted on β€’ Edited on

2 1

Knative : the easy way to serverless a java app

Hi everyone πŸ™‹πŸ»β€β™‚οΈ,

Let me introduce you Knative, a friend (or extension) of Kubernetes ☸, an easy way to stop apps when not used and so, save our planet 🌏 from COβ‚‚ attack!

Works out of the box for a Docker/OCI image of a serving app (like a REST app), but needs some changes for event consumers one's.

As the app starts on first request, is better to have a rabbit 🐰 startup performance level degree than a tortoise's 🐒 one (only works in this case 🏁). In Java β˜•οΈ apps, native-images comes to rescue πŸš€ (more about that in the next post).

You can see a working example of Knative serving a native java REST app in this interactive Katacoda tutorial, or if you are a lucky πŸ‡«πŸ‡·FrenchπŸ‡«πŸ‡· speaker, you can simply watch this demo video:

.

Cheers 🍻

Resources

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Billboard image

Deploy and scale your apps on AWS and GCP with a world class developer experience

Coherence makes it easy to set up and maintain cloud infrastructure. Harness the extensibility, compliance and cost efficiency of the cloud.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay