Vikas Chahar

Building an AI-Native Revenue Automation Platform with Rust Microservices

Submitted Mar 15, 2026

At Fourbyfour, we built an AI-native revenue automation
platform from scratch using Rust microservices. This talk
walks through our architecture: Gateway, Stream,
Notifications, Hooks, Workflows, Attribution, Timer, and
In-App services—all orchestrated to transform simple track()
events into intelligent, auto-optimized notifications that
recover revenue. I’ll share real lessons from production:
implementing Thompson Sampling for A/B testing, Rhai
scripting for workflow conditions, SSE broadcasting for
real-time in-app notifications, and AES-256-GCM encryption
for per-project credentials.

The second half covers integration challenges—coordinating
Axum services with a Next.js control plane, managing dual
migrations (Prisma + SQLx), and building SDKs in TypeScript
and Python that abstract away complexity into a single
fbf.track() call. I’ll also discuss how we integrated AWS
Bedrock (Claude) for AI-generated copy and workflow creation,
and the observability stack (X-Ray, CloudWatch) that keeps 8
services running smoothly on ECS.

Takeaways:

  1. Practical patterns for building multi-tenant Rust
    microservices with Axum, SQLx, and Rhai scripting
  2. How to implement Thompson Sampling for continuous
    auto-optimization (replacing manual A/B tests)

Target Audience:
Backend engineers building SaaS products, developers
interested in Rust microservices architecture, and teams
evaluating Rust for production workloads.

Bio:
Vikas Chahar, building Fourbyfour—an AI-native revenue
automation platform. Passionate about Rust, distributed systems, and replacing manual marketing workflows with intelligent automation.

Comments

{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}

Hosted by

A community of Rust language contributors and end-users from Bangalore. We have presence on the following telegram channels https://t.me/RustIndia https://t.me/fpncr LinkedIn: https://www.linkedin.com/company/rust-india/ more