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

Deploy with ease. Manage efficiently. Scale faster.

Leave the infrastructure headaches to us, while you focus on pushing boundaries, realizing your vision, and making a lasting impression on your users.

Get Started

Top comments (0)

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

πŸ‘‹ Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay