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

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