Comments
1 min
deploy serverless infrastructure with openwhisk
making your own serverless infrastructure to deploy your functions on
What is Serverless?
Before talking about OpenWhisk, let’s understand serverless.
- Normally, when you run code (like a website backend), you need to manage servers.
- With serverless, you just write the code, and the cloud runs it for you—no need to worry about servers!
- You pay only when your code runs (not when it’s idle).
What is Apache OpenWhisk?
OpenWhisk is an open-source serverless platform. It lets you run small pieces of code (called "functions") in the cloud without managing servers.
How Does It Work?
- You write a function (in Python, JavaScript, Java, etc.).
- Upload it to OpenWhisk.
- Set a trigger (like an HTTP request, a database change, or a scheduled time).
- When the trigger happens, OpenWhisk runs your function automatically.
If you want to test it on your own machine:
- Install Docker: https://docs.docker.com/get-docker/
- Clone OpenWhisk:
git clone https://github.com/apache/openwhisk.git
cd openwhiskStart OpenWhisk (this may take a few minutes):
./gradlew core:standalone:bootRunUse the wsk CLI to interact with it:
- Download
wskfrom OpenWhisk releases .