High-performance Go SDK for building distributed streaming applications with StreamBus
A modern, lightweight Go client library for StreamBus with enterprise-grade features
StreamBus SDK is designed to make building distributed streaming applications in Go simple, efficient, and reliable.
Achieve 1M+ messages/sec with minimal latency and resource usage
Built-in support for TLS/mTLS and SASL authentication
Minimal external dependencies for maximum reliability
Intuitive Go-idiomatic API that's easy to learn and use
package main
import (
"log"
"github.com/gstreamio/streambus-sdk/client"
)
func main() {
// Connect to StreamBus
config := client.DefaultConfig()
config.Brokers = []string{"localhost:9092"}
c, err := client.New(config)
if err != nil {
log.Fatal(err)
}
defer c.Close()
// Send a message
producer := client.NewProducer(c)
err = producer.Send("events", []byte("key"), []byte("Hello StreamBus!"))
if err != nil {
log.Fatal(err)
}
log.Println("Message sent successfully!")
}
Ready to build your first StreamBus application?
Step-by-step tutorial to get up and running quickly
Complete reference for all SDK types and functions
Understanding the SDK design and internals
Real-world examples and common patterns
Production deployment guidelines and tips
StreamBus SDK is licensed under the Apache License 2.0.