Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
A Go HTTP function returning JSON.
# fission/demo/go_json.yaml
apiVersion: fission.io/v1
kind: Function
metadata:
name: json-go
namespace: default
spec:
environment:
name: go
runtime: go
code:
inline:
function: |
package main
import (
"encoding/json"
"net/http"
)
type Response struct { Message string `json:"message"` }
func Handler(w http.ResponseWriter, r *http.Request) {
resp := Response{Message: "Hello JSON!"}
json.NewEncoder(w).Encode(resp)
}
routes:
- path: /json
method: GETFission is a serverless framework for Kubernetes that allows developers to deploy functions quickly without managing infrastructure. It focuses on fast, event-driven, and scalable function execution.
Origin & Creator
Fission was created by Platform9 Systems in 2017 as an open-source serverless framework for Kubernetes.
Industrial Note
Fission is particularly suited for teams already running Kubernetes who want lightweight, event-driven serverless functions without managing containers manually.