Feat 2.0.0 Released: Apache 2.0 License Upgrade Opens Doors for Enterprise Use

Feat 2.0.0 launches with an Apache 2.0 license, delivering extreme performance via smart‑socket, full HTTP/1.x/2.0, WebSocket and SSE support, lightweight core, cloud‑native features, built‑in AI agents, and seamless SpringBoot migration, while removing legal barriers for commercial adoption.

Three Knives
Three Knives
Three Knives
Feat 2.0.0 Released: Apache 2.0 License Upgrade Opens Doors for Enterprise Use

Feat: Modern Java Web Service Development Framework

Feat is a Java web‑service framework designed for modern cloud environments, combining Vert.x‑level performance with SpringBoot‑style development convenience.

Core Advantages

🚀 Extreme Performance : built on the mature AIO communication framework smart-socket for high‑concurrency scenarios.

🌐 Comprehensive Protocol Support : HTTP/1.0, HTTP/1.1, HTTP/2.0, WebSocket and Server‑Sent Events (SSE).

⚖️ Lightweight Core ( feat-core): pure HTTP server/client implementation that minimizes resource consumption.

🔧 Convenient Cloud‑Native Development ( feat-cloud): dependency injection, annotation‑based routing and other SpringBoot‑like features for seamless migration.

🤖 Integrated AI Capability ( feat-ai): built‑in ReAct Agent supporting multiple large language models to simplify intelligent application development.

Open‑Source License Upgrade: From AGPL to Apache 2.0

Why Switch?

Since its launch in December 2024, Feat used AGPL to protect the project’s integrity, but the “viral” clause created significant legal risk for enterprise users and hindered broader adoption.

Apache 2.0 is the de‑facto standard for enterprise‑grade open‑source projects (e.g., Spring Framework, Kubernetes, TensorFlow). After several stable releases, Feat’s core architecture and community are mature enough to adopt Apache 2.0 without affecting existing users, while removing the legal barrier for ecosystem expansion.

Value for Enterprise Users

Commercial‑Friendly : can be used in closed‑source commercial projects without open‑source obligations.

Patent Grant : explicit patent usage rights lower IP risk.

Technology Selection : reduces legal‑review overhead and speeds up technical decision‑making.

Ecosystem Participation : allows free customization and extension without mandatory code contributions.

The license change has no technical impact; upgrading only requires bumping the version number to v2.0.0.

Strategic Significance

The upgrade lays a solid foundation for long‑term development:

Business Application Expansion : suitable for fintech, e‑commerce, IoT, internal enterprise systems, embedded devices, edge computing and middleware.

Ecosystem Prosperity : Apache 2.0 will attract more contributors, fostering third‑party libraries, toolchains and solutions, positioning Feat as a standard high‑performance Java web service.

Roadmap Enablement : clears obstacles for future features such as micro‑service governance, multi‑Agent collaboration, componentized ecosystem and enterprise‑level support services.

Comparison with Spring Framework

Technical Selection Guidance

Choose Feat when:

Strict performance and resource‑consumption requirements.

Micro‑service architecture needing fast startup and elastic scaling.

Serverless, pay‑as‑you‑go scenarios.

AI application development that requires large‑model integration.

Choose Spring when:

Rich enterprise features such as Spring Security or Spring Batch are needed.

The team is already familiar with the Spring ecosystem.

Rapid prototyping with low performance demands.

Heavy reliance on existing Spring components.

Core Module Features

Feat Core: High‑Performance Foundation

HTTP Server

public class HelloWorld {
    public static void main(String[] args) {
        Feat.httpServer()
            .httpHandler(req -> req.getResponse().write("Hello World"))
            .listen(8080);
    }
}

Key Features

Protocol support: HTTP/1.0, HTTP/1.1, HTTP/2.0.

WebSocket: full server and client implementation.

SSE: Server‑Sent Events for real‑time push scenarios.

HTTPS: PEM‑format certificate support with simple configuration.

Static Resources: built‑in high‑performance static file server.

Performance Optimizations

Connection‑pool management to avoid resource leaks.

Buffer reuse to reduce GC pressure and increase throughput.

Asynchronous decoding for GZIP, Deflate and other compression algorithms.

Feat Cloud: Enterprise‑Level Capabilities

Dependency Injection

@Controller
public class UserController {
    @Autowired
    private UserService userService;

    @RequestMapping("/users/{id}")
    public User getUser(@PathParam("id") Long id) {
        return userService.findById(id);
    }
}

Supported annotation‑based routing: @Controller: marks a controller class. @RequestMapping: maps HTTP requests. @PathParam: binds path variables. @Param: binds query parameters.

MyBatis Integration

feat:
  mybatis:
    path: mybatis/mybatis-config.xml

Compile‑time parsing of MyBatis configuration.

Code generation for Mapper interfaces and SQL mappings.

Declarative transaction support.

Distributed Session (Redis)

server:
  session:
    timeout: 1800
    store-type: redis

feat:
  redis:
    address: redis://127.0.0.1:6379

AOT Compilation

Compile‑time dependency injection.

Pre‑compiled routing mapping.

Startup performance optimization.

Feat AI: Intelligent Integration

Feat AI embeds a ReAct‑style AI Agent capable of multi‑model interaction.

ReActAgent agent = new ReActAgent(opts -> {
    opts.chatOptions().model(ChatModelVendor.GiteeAI.DeepSeek_V32_EXP);
    opts.maxIterations(30);
    opts.hook(new Hook() {
        @Override
        public void onFinalAnswer(String content) {
            System.out.println("答案: " + content);
        }
    });
});
String result = agent.execute("分析 Feat 框架的特性并生成报告");

Autonomous Reasoning : analyses task requirements and devises execution plans.

Tool Invocation : built‑in web reading, search and file operations.

Memory Management : stores and retrieves interaction history.

Iterative Execution : multi‑turn reasoning to gradually accomplish complex tasks.

Upgrade Guide

From v1.x to v2.0.0

v2.0.0 is fully compatible with v1.x; simply update the version number:

<feat.version>2.0.0</feat.version>

License Change Note

After upgrading to v2.0.0, the project automatically adopts the Apache 2.0 license, allowing enterprises to use Feat in commercial projects without open‑source obligations.

Future Outlook

Feat v2.0.0 marks a new development stage. The license upgrade removes legal obstacles, and the technical advantages ensure high‑performance suitability for demanding scenarios.

Future Plans

Ecology construction: build a rich component library and toolchain.

Performance optimization: continuously improve framework efficiency and reduce resource consumption.

AI deepening: explore multi‑Agent collaboration for stronger intelligent capabilities.

Enterprise services: provide enterprise‑level support to ensure production stability.

Community Building

Contribute code to core features.

Improve documentation.

Share experiences through tutorials and best‑practice articles.

Report issues and suggestions via the issue tracker.

Related Links

Official documentation: https://smartboot.tech/feat

GitHub repository: https://github.com/smartboot/feat

Gitee repository: https://gitee.com/smartboot/feat

Issue feedback: https://gitee.com/smartboot/feat/issues

Follow the public account for the latest Feat framework updates and technical sharing.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

JavaPerformancecloud-nativeAI IntegrationWeb FrameworkApache License
Three Knives
Written by

Three Knives

Every line of code you contribute to open source could help make the future better.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.