{"id":45400842,"url":"https://github.com/ottenwbe/go-streaming","last_synced_at":"2026-03-08T21:10:58.683Z","repository":{"id":229431415,"uuid":"775135667","full_name":"ottenwbe/go-streaming","owner":"ottenwbe","description":"Stream Processing Tooling","archived":false,"fork":false,"pushed_at":"2026-02-21T19:56:59.000Z","size":185,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-22T00:03:46.566Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ottenwbe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-20T20:32:08.000Z","updated_at":"2026-02-21T18:37:31.000Z","dependencies_parsed_at":"2024-04-20T18:30:23.092Z","dependency_job_id":null,"html_url":"https://github.com/ottenwbe/go-streaming","commit_stats":null,"previous_names":["ottenwbe/go-streaming"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ottenwbe/go-streaming","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottenwbe%2Fgo-streaming","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottenwbe%2Fgo-streaming/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottenwbe%2Fgo-streaming/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottenwbe%2Fgo-streaming/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ottenwbe","download_url":"https://codeload.github.com/ottenwbe/go-streaming/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ottenwbe%2Fgo-streaming/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29948228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T18:42:55.706Z","status":"ssl_error","status_checked_at":"2026-02-28T18:42:48.811Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-21T20:13:04.382Z","updated_at":"2026-03-08T21:10:58.676Z","avatar_url":"https://github.com/ottenwbe.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Streaming Library\n\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/ottenwbe/go-streaming/blob/main/LICENSE)\n[![Go](https://github.com/ottenwbe/go-streaming/actions/workflows/go.yml/badge.svg)](https://github.com/ottenwbe/go-streaming/actions/workflows/go.yml)\n\nThis project provides a lightweight, generic, in-memory, and type-safe streaming and event processing library for Go. It is designed with flexibility and extendability in mind, allowing you to build complex data processing graphs/pipelines.\n\n## Core Concepts\n\n- **Events**: Events are the fundamental units of data flowing through streams. They are generic containers (`Event[T]`) that hold content and are timestamped. Defined in `pkg/events`.\n- **Streams**: A stream is a type-safe, in-memory topic for publishing and subscribing to events. The core pub/sub mechanism lives in the `pkg/pubsub` package.\n- **Operators**: Operators are functions that transform streams. They can be chained together to form processing graphs. The library provides a set of default operators (`Map`, `Filter`, `Join`, etc.) and allows you to easily create your own.\n- **Continuous Queries**: A continuous query is a running processing graph/pipeline that processes one or more input streams through a series of operators to produce an output stream. Queries are constructed using a `Builder` located in the `pkg/processing` package.\n\n## Project Status \u0026 Disclaimer\n\nThis project's primary purpose was for the authors to explore concurrency in Go (channels, mutexes, etc.), rather than to build a feature-complete, production-grade stream processing system. Consequently, performance optimizations and advanced features like a dedicated query language (e.g., CQL) were not the main focus.\n\n## Features\n\n- **Type-Safe Pub/Sub**: Leverages Go generics for type-safe event streams.\n- **Continuous Queries**: Functional DSL for building stream processing graphs and pipelines.\n- **Backpressure \u0026 Buffering**: Built-in support for buffered streams and flow control.\n- **Windowing**: Support for time-based (`TemporalWindow`) and count-based (`CountingWindow`) windows.\n- **Stream Operations**: Support for joining streams (`Join`, `LeftJoin`) with windowing policies and more.\n\n## Limitations\n\n- **Operator Support**: The library provides a set of standard operators (`Filter`, `Map`, `Join`, `BatchSum`, etc.), but specialized operators may need to be implemented.\n- **Distributed Processing**: This is currently a single-node, in-memory processing engine.\n- **Persistence**: State is not persisted. If the application restarts, all stream contents and operator states are lost.\n\n## Installation\n\n```sh\ngo get github.com/ottenwbe/go-streaming\n```\n\n## Usage\n\n### Pub/Sub\n\nThe core `pubsub` package allows for simple, type-safe messaging.\n\n```go\n// Subscribe to a topic\nsub, err := pubsub.SubscribeByTopic[int](\"my-topic\", func(e events.Event[int]) {\n    fmt.Println(\"Received:\", e.GetContent())\n})\ndefer pubsub.Unsubscribe(sub)\n\n// Publish to a topic\np, _ := pubsub.RegisterPublisher[int](\"my-topic\")\ndefer pubsub.UnRegisterPublisher(p)\np.Publish(events.NewEvent(42))\n```\n\n### Continuous Queries\n\nBuild processing pipelines using the Builder:\n\n```go\nb := processing.NewBuilder[int]()\nb.From(processing.Source[int](\"source-topic\")).\n    Process(processing.Operator[int](processing.Smaller[int](50)))\n\nq, err := b.Build(true)\n\nq.Subscribe(func(e events.Event[int]) {\n    // Handle processed output\n})\n\nq.Run()\n```\n\n## Examples\n\nSee our examples folder for more details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fottenwbe%2Fgo-streaming","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fottenwbe%2Fgo-streaming","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fottenwbe%2Fgo-streaming/lists"}