Dapr, Kubernetes, Cloud Native, Cloud Computing.
CreateOrder(orderId string) { // Create a Dapr client client, err := dapr.NewClient() if err != nil { log.Fatal(err) } order := `{"orderId":` + strconv.Itoa(orderId) + "}" // Save state into the state store err = client.SaveState(context.Background(), stateStoreComponentName, strconv.Itoa(orderId),