FERRUM
Pricing Engine
Resolve complex B2B pricing in microseconds.
The specialized in-memory pricing engine for e-commerce.
Contract pricing | Customer groups | Volume tiers | JSON rules
# Set base price
BPRICE.SET SKU-001 99.99 USD
# Set customer-specific price (VIP gets 20% off)
BPRICE.CUSTOMER SKU-001 vip-customer-1 79.99
# Get price for customer (auto-resolves fallback chain)
BPRICE.GET SKU-001 CUSTOMER vip-customer-1
# Returns: 79.99 (315 nanoseconds)Trusted by E-commerce Leaders
Companies across industries use FERRUM to power their pricing infrastructure.
"We replaced 47 stored procedures with FERRUM. Our order processing is now 100x faster and our engineers can focus on features instead of pricing bugs."
"Last Black Friday was a disaster—our pricing service crashed during peak. This year with FERRUM? We didn't even notice the traffic spike."
"Complex B2B pricing used to take our team weeks to implement. Now it's a JSON config change that goes live in minutes."
Built for B2B/B2C E-commerce
Every feature designed for complex pricing scenarios. From simple catalogs to enterprise B2B with contract negotiations.
7-Level Fallback Chain
Contract → Customer → Group → Channel → Country → Zone → Base. Automatic resolution with tier pricing at every level.
Complete B2BJSON Rule Engine
Create complex pricing rules with AND/OR/NOT logic. 30+ operators, 8+ action types. 1.4M evaluations/sec.
1.4M evals/secCart Integration
Full shopping cart support with line items, coupons, applied rules tracking, and checkout integration.
End-to-EndRedis Compatible
Full RESP protocol support with 50+ commands. Use existing Redis clients. Zero code changes.
Drop-in ReplaceREST API
Modern RESTful API for web integration. JSON request/response. Health and metrics endpoints.
Web ReadyMulti-Currency
Per-price, per-customer, and per-group currency support. Unlimited currencies throughout the chain.
Global ReadyContract Pricing
Time-bound B2B deals with validity windows. Automatic expiration and fallback to next level.
EnterpriseCustomer Groups
Wholesale, distributor, VIP, retail groups with priority resolution. Unlimited group hierarchies.
FlexibleVolume Tiers
Quantity-based price breaks at any fallback level. "Next tier upsell" suggestions built-in.
Smart PricingPersistence
RDB snapshots and AOF logging. Configurable fsync policies. Crash recovery with hybrid mode.
DurablePrometheus Metrics
Built-in /metrics endpoint. Monitor prices, customers, memory, throughput in Grafana.
ObservableMemory Safe
Memory-safe architecture with compile-time safety guarantees. Secure, reliable, and production-tested.
Enterprise GradeBuilt for Your Industry
From startup B2C to enterprise B2B, FERRUM adapts to your pricing complexity.
B2B eCommerce
Customer-specific contract pricing, wholesale volume discounts, multi-tier customer groups, and real-time updates for sales reps.
"Our wholesale customers have negotiated contracts, volume discounts, and currency preferences. MySQL queries were taking 200ms. FERRUM returns the exact same price in 0.3ms."
Marketplace Platforms
Per-seller pricing rules, dynamic discount campaigns, flash sale management, and channel-specific pricing across web, mobile, and apps.
"With 50,000 sellers and dynamic pricing rules, we needed something that could handle millions of price calculations without breaking a sweat."
Retail/B2C
Promotional campaigns, birthday offers, loyalty discounts, geographic pricing variations, and personalized dynamic pricing.
"Personalized pricing at scale. Birthday offers, loyalty discounts, geo-pricing—all resolved in microseconds."
Enterprise ERP
Replace slow database queries with real-time price calculation. High-throughput catalog pricing for order systems.
"We replaced 47 stored procedures with FERRUM. Our order processing is now 100x faster."
Real Benchmarks, Real Results
Measured on Apple Silicon M1 Pro. Fair comparisons with all databases in identical conditions.
Price Lookup Performance
| Test | FERRUM | Alternative | Improvement |
|---|---|---|---|
| Anonymous Lookups | 6,055,691 /sec | Redis: ~100K /sec | 60x faster |
| Customer Lookups | 3,171,622 /sec | MySQL: ~5K /sec | 634x faster |
| ID-based Lookups | 16,865,125 /sec | PostgreSQL: ~8K /sec | 2,108x faster |
| Lookup Latency | 165 ns | MySQL: ~200 ms | 1,212x faster |
Rule Engine
| Test | FERRUM | Alternative | Improvement |
|---|---|---|---|
| Rule Matching | 1,727,798 /sec | App-layer: ~10K /sec | 172x faster |
| Full Evaluation | 1,448,183 /sec | Stored Proc: ~1K /sec | 1,448x faster |
| Per-evaluation Latency | 691 ns | App-layer: ~50 ms | 72,000x faster |
Catalog Page Simulation
| Test | FERRUM | Alternative | Improvement |
|---|---|---|---|
| 10 Products | 610,975 pages/sec | Traditional: ~100 pages/sec | 6,109x faster |
| 24 Products (avg page) | 174,894 pages/sec | Traditional: ~50 pages/sec | 3,497x faster |
| 100 Products (bulk) | 53,005 pages/sec | Traditional: ~20 pages/sec | 2,650x faster |
Multi-Core Scaling
| Test | FERRUM | Alternative | Improvement |
|---|---|---|---|
| Single Core | 6,314,550 /sec | Redis (single): ~100K /sec | 63x faster |
| 12 Cores Parallel | 23,611,450 /sec | Redis (cluster): ~500K /sec | 47x faster |
| Scaling Efficiency | 3.7x speedup | Redis: limited | Linear scale |
Memory Efficiency
| Test | FERRUM | Alternative | Improvement |
|---|---|---|---|
| 10K Products | ~2 MB | PostgreSQL: ~50 MB | 25x smaller |
| 1K Customers | ~500 KB | MySQL: ~10 MB | 20x smaller |
| Full Enterprise Dataset | ~6 MB | Traditional: ~100 MB | 16x smaller |
Database Comparison Summary
| Database | B2B Pricing Throughput | vs FERRUM |
|---|---|---|
| MySQL | ~1-5K ops/sec | 3,170x slower |
| PostgreSQL | ~2-8K ops/sec | 1,585x slower |
| MongoDB | ~5-15K ops/sec | 634x slower |
| Redis | ~100K ops/sec | 32x slower |
| FERRUM (1 core) | 3.17M ops/sec | baseline |
| FERRUM (12 cores) | 23.6M ops/sec | 7.4x baseline |
Engineered for Performance
Purpose-built architecture optimized for pricing workloads. Not a general-purpose database—a specialized pricing engine.
How FERRUM Works
Receive Request
Redis protocol or REST API—your choice
Resolve Price
7-level fallback chain in microseconds
Apply Rules
JSON rule engine evaluates discounts
Return Result
Final price in under 1 millisecond
Dual Protocol Access
- Redis-compatible RESP protocol
- Modern REST API with JSON
- 50+ standard commands
- Custom B2B pricing commands
Enterprise Performance
- 23M+ lookups per second
- Sub-millisecond latency
- Linear multi-core scaling
- Memory-efficient storage
Production Ready
- Point-in-time snapshots
- Append-only durability
- Prometheus metrics
- Health & readiness probes
7-Level Price Fallback Chain
Each level supports volume/tier pricing, multi-currency, and time-bound validity.
Simple, Transparent Pricing
Start free. Scale as you grow. No hidden fees.
Lifetime License — €1,500one-time payment
Get Enterprise-level features, forever. No monthly fees. Limited availability.
Free
Perfect for getting started with simple pricing
- Base prices
- Customer-specific prices
- RESP protocol (50+ commands)
- REST API
- Prometheus metrics
- Customer groups
- Volume/tier pricing
- JSON rule engine
Pro
For growing businesses with complex pricing needs
- Everything in Free
- Customer groups (unlimited)
- Channel pricing
- Volume/tier pricing
- JSON rule engine (100 rules)
- Cart integration
- Priority email support
- Country/Zone pricing
Enterprise
For large-scale B2B with full feature access
- Everything in Pro
- Country & Zone pricing
- Contract pricing (time-bound)
- Unlimited rules
- Clustering & HA
- Custom feature development
- Dedicated account manager
- SLA: 4h response time
Silent fallback: Disabled features gracefully fall back to the next available price level. No errors, no breaking changes.
Ready to Make Your Pricing 32x Faster?
Join leading e-commerce companies using FERRUM for microsecond pricing decisions. Start free, no credit card required.