The Backend API Firewall
Unlike traditional testing tools that rely on brittle UI navigation, Jataka’s API Firewall bypasses the browser entirely. It generates data payloads and pushes them directly via the Salesforce REST/Tooling API.Overview
The API Firewall is Jataka’s first line of defense. It executes transactions at the API level to catch Governor limit breaches before they can cause production incidents.How it works
When a PR is opened, Jataka executes the transaction and instantly captures theSforce-Limit-Info headers.
Limits Caught Automatically
SOQL in Loops
Catches
System.LimitException: Too many SOQL queries: 101.DML in Loops
Catches
System.LimitException: Too many DML statements: 151.Apex CPU Timeouts
Profiles long-running synchronous Apex triggers.
Data Skew Locks
Catches
UNABLE_TO_LOCK_ROW errors before production.Real-time Profiling
Header Analysis
Jataka intercepts and analyzes Salesforce response headers in real-time:Sub-second Detection
Traditional testing takes minutes. Jataka detects issues in milliseconds:| Metric | Traditional Tools | Jataka API Firewall |
|---|---|---|
| Test Execution | 2-5 minutes | 200-500ms |
| Limit Detection | Post-execution | Real-time |
| Feedback Loop | Hours | Instant |
Code Example: Jataka Report Card
When a limit is breached, Jataka posts this directly to your GitHub PR:Advanced Features
Custom Thresholds
Configure custom limits for your org’s specific needs:Batch Transaction Testing
Test multiple scenarios in parallel:Historical Analysis
Track limit usage over time:Integration Examples
GitHub Actions
Slack Notifications
Get instant alerts in Slack when limits are breached:Best Practices
Troubleshooting
Common Issue: “API limit exceeded during testing”Solution: Use a dedicated test user or reduce test parallelism to avoid hitting Salesforce API limits during testing.
Performance Tip: Cache test data between runs to reduce API calls and improve test speed.
What’s Next?
- Kamikaze Pods - Learn about our UI testing engine
- Configuration - Set up custom thresholds
- API Reference - Explore the API
Ready to try it? Run
jataka test --engine api-firewall --quick to see it in action!