Knative : the easy way to serverless a java app

Daniel Santos - Mar 4 '22 - - Dev Community

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

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .