Open-source Java framework · Moduliths & microservices

Separate what a service does from how it is governed.

Chenile lets you write plain-Java services that hold nothing but business logic — then apply security, logging, tenancy, i18n and retries as reusable service policies, consistently at the API gateway and the last mile.

org.chenile · v2.1.36 · 11 repositories, one release train
0
Modular repositories
One coherent framework, versioned together
0K
Lines of production Java
Plus ~23K lines of tests
0
Automated framework tests
Plus 152 in JGen · zero failures on 2.1.36
0
Maven modules
Released together under chenile-parent
0×
Write a policy once
Runs at the gateway and the last mile

Measured from the source — see Chenile by the numbers →

How it works

One service, many transports

Define a service once. HTTP, proxies, AI agents over MCP, Kafka, MQTT, Azure Event Hubs, schedules and file drops all reach it through a transport adapter, and every adapter hands off to the same ChenileEntryPoint. Your policies run once, in one place, whatever the caller.

Chenile services exposed via multiple transports HTTP clients, local Chenile proxies, AI agents over MCP, pub-sub brokers (Kafka, Azure Event Hub, MQTT, JVM pub-sub) and triggers (cron, file watcher, external HTTP) reach transport adapters (ControllerSupport, HttpEntryPoint, LocalProxyInvoker, ChenileMCP, PubSubEntryPoint for @ChenilePubSub invocations, EventProcessor for Chenile events), which all hand off to ChenileEntryPoint and the chenile-highway interceptor chain before the registered services are invoked. A remote proxy becomes an HTTP client of the service. A Spring RestController sits in the request path; a non-REST ChenileController only supplies the definition at startup. HTTP client HTTP client Chenile proxy AI agent (MCP) Kafka Azure Event Hub MQTT JVM pub-sub Cron File watcher Ext HTTP trigger @RestControllerSpring · in the request path @ChenileControllerdefinition only · no HTTP route Spring MVC route registers routes at startup local MCP tool call remote: becomes an HTTP client Pub-sub consumerschenile-messaging Trigger servicemode: outbox Chenile transport adapters ControllerSupportprocess(...) HttpEntryPointJSON-defined routes LocalProxyInvokerChenile proxy · local ChenileMCPtool callback PubSubEntryPoint@ChenilePubSub invocation EventProcessorhandleEvent(id, …) Outboxrows: 0 ChenileEntryPoint chenile-highway headers pre-proc transform svc-ref post-proc invoke Service Acalls: 0 Service Bcalls: 0
Send
Trigger mode
Watching traffic…

Click any box to see what it is and where to read more.

Walk through every adapter →

Coming soon

AI, governed by Chenile.

Chenile already knows your services, their contracts, their workflows and their metrics. ChenAIle puts AI to work on all of it.

01

ChenAIle agents

AI agents that act through governed Chenile services and workflows, under the same policies as every other caller. Powered by Chenile Finito.

02

ChenAIle tool calls

Chenile services as MCP tools, governed by the same pipeline as every other caller. Tool calls through the entry point ship in 2.1.36; a tool registry follows.

03

ChenAIle machine learning

AI-based machine learning on the signals Chenile services already produce.

04

Business rules engine

A rules engine that leverages the metrics coming from Chenile services to drive business decisions.

Generate your first Chenile service in minutes

Scaffold an api + service pair, get a deployable monolith, and start attaching policies.