Documentation Center

Learn how to install, configure, and integrate the self-hosted PackCPQ engine.

gRPC Pricing Feeds

gRPC API Interface

For internal estimators or customer-facing e-commerce panels requiring sub-15ms quotation updates, PackCPQ exposes a high-speed gRPC server endpoint on port 9090. This bypasses the network overhead of traditional HTTP/REST payloads.

1. Port Configuration

Enable gRPC inside your configuration parameters profile:

GRPC_ENABLED=true
GRPC_PORT=9090
GRPC_MAX_CONCURRENT_STREAMS=1000

2. Basic Connection Stub (Go Example)

Connect your local microservices to the calculator engine using standard client stubs:

package main

import (
	"context"
	"log"
	"time"

	"google.golang.org/grpc"
	"google.golang.org/grpc/credentials/insecure"
)

func main() {
	// Connect to local container endpoint on private network
	conn, err := grpc.Dial("10.0.4.10:9090", grpc.WithTransportCredentials(insecure.NewCredentials()))
	if err != nil {
		log.Fatalf("did not connect: %v", err)
	}
	defer conn.Close()
	
	log.Println("gRPC channel initialized successfully.")
}
Protobuf Files Restricted

The complete protobuf contract (calc_engine.proto) containing structural folding matrices parameters and margins arrays is restricted to active licensees. Protobuf source libraries are available to download inside your local administrative portal dashboard.