For architects
One governed way into your RPG programs.
On most IBM i estates, other systems reach the business logic through queues and through SQL sent straight to the database. Both work. Neither gives you a contract, a version or one place to govern. slay400 puts an API gateway in front of the RPG programs and gives those APIs the same lifecycle as the rest of your APIs.
Before
Queues and direct SQL
Scroll to see the full diagram.
The interface is a layout. Message formats and table columns are the contract, and they are documented wherever someone last wrote them down.
Rules can be skipped. SQL that writes to the tables does not run the validations in your RPG programs.
Consumers know your schema. Changing a column means finding everyone who reads it first.
Credentials spread. Each consumer holds its own database profile.
Async by convention. Correlation, retries and error handling are solved again for every queue.
Change is hard to see. No version tells a consumer what changed, or you who is affected.
After
An API gateway in front of the programs
Scroll to see the full diagram.
One front door. Consumers call an API. The RPG program stays the only code that touches the data.
A contract for every program. An OpenAPI document generated from the PCML your compiler emits and a small reviewed overlay.
Sync and async, one pattern. REST for request and response. Asynchronous request-reply and events over Pub/Sub, described with AsyncAPI (Enterprise and SaaS).
Change is governed. Every change is a pull request: validated, compared with the released version, and refused if it breaks consumers without a new major version.
A delivery flow like your other APIs. Contracts in Git, checks in the pipeline, a mock backend for tests without an IBM i, versioned bundles loaded without a restart.
Credentials in one place. Consumers hold no IBM i profile. The gateway resolves credentials per tenant and environment; authentication and claims come with Enterprise.
Ready for AI agents. The same contract generates MCP tools, so an agent calls only what you have reviewed (Enterprise and SaaS).
What changes for the architecture
| Concern | Before | After |
|---|---|---|
| Interface | Message layouts and table columns | Versioned OpenAPI and AsyncAPI contracts |
| Coupling | Consumers depend on the database schema | Consumers depend on the API; the schema stays private |
| Business rules | Can be skipped by direct SQL | Always run: every call goes through the program |
| Change control | By agreement between teams | Pull request with breaking-change detection |
| Async | A convention per queue | Request-reply and events as standard patterns (Enterprise and SaaS) |
| Credentials | A database profile per consumer | Held by the gateway, per tenant and environment |
| Testing | Needs an IBM i | Mock backend in the pipeline |
| AI agents | Not possible safely | MCP tools from the same contract (Enterprise and SaaS) |
What you keep
Your RPG programs. They are called as they are. Nothing is rewritten or wrapped by hand.
Your database. Db2 for i stays where it is, behind the programs.
Your pace. Queues and existing integrations keep running while you move consumers one at a time.
slay400 is in early development. The generator comes first, the gateway follows. This page describes the design the project is building towards.