CoreTechnical
Proveniq Core
The central API and data orchestration layer
The Central Nervous System
Proveniq Core is the API platform that connects every module in the ecosystem. It ingests data from hardware, processes it through intelligent algorithms, and distributes insights to applications.
Architecture
System Design
┌─────────────────────────────────────────────────────────────┐
│ PROVENIQ CORE │
├─────────────────────────────────────────────────────────────┤
│ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
│ │ Gateway │ │ Auth │ │ Rate │ │ Router │ │
│ │ API │ │ Service │ │ Limiter │ │ │ │
│ └────┬────┘ └────┬────┘ └────┬────┘ └────┬────┘ │
│ └────────────┴────────────┴────────────┘ │
│ │ │
│ ┌───────────────────────┴───────────────────────┐ │
│ │ SERVICE MESH │ │
│ ├─────────┬─────────┬─────────┬─────────┬──────┤ │
│ │ Assets │ Ledger │ Claims │ Bids │Capital│ │
│ │ Service │ Service │ Service │ Service │Service│ │
│ └─────────┴─────────┴─────────┴─────────┴──────┘ │
│ │ │
│ ┌───────────────────────┴───────────────────────┐ │
│ │ DATA LAYER │ │
│ ├─────────┬─────────┬─────────┬─────────────────┤ │
│ │PostgreSQL│ Redis │Elasticsearch│ S3 Storage │ │
│ └─────────┴─────────┴─────────┴─────────────────┘ │
└─────────────────────────────────────────────────────────────┘
Technology Stack
| Layer | Technology |
|---|---|
| API Gateway | Kong / AWS API Gateway |
| Services | Node.js / Go microservices |
| Message Queue | Apache Kafka |
| Primary DB | PostgreSQL |
| Cache | Redis Cluster |
| Search | Elasticsearch |
| Storage | AWS S3 |
| ML Platform | AWS SageMaker |
API Reference
Authentication
All API requests require authentication via:
- API Keys — For server-to-server integration
- OAuth 2.0 — For user-context requests
- JWT Tokens — For session management
Endpoints
Assets API
GET /v1/assets List assets
POST /v1/assets Register new asset
GET /v1/assets/:id Get asset details
PUT /v1/assets/:id Update asset
GET /v1/assets/:id/value Get current valuation
GET /v1/assets/:id/history Get provenance history
Ledger API
GET /v1/ledger/entries Query ledger entries
GET /v1/ledger/entries/:id Get specific entry
POST /v1/ledger/verify Verify entry authenticity
GET /v1/ledger/proof/:id Get cryptographic proof
Hardware API
GET /v1/devices List registered devices
POST /v1/devices/events Receive device telemetry
GET /v1/devices/:id/status Get device status
POST /v1/lockers/scan Initiate Locker scan
Webhooks
Subscribe to real-time events:
{
"event": "asset.verified",
"timestamp": "2024-01-15T10:30:00Z",
"data": {
"asset_id": "ast_123456",
"verification_id": "ver_789",
"score": 98.5,
"device_id": "loc_456"
}
}
Data Processing
Event Pipeline
- Ingestion — Events received via API or device stream
- Validation — Schema and business rule checks
- Enrichment — Add context from related data
- Processing — Apply business logic and ML models
- Storage — Persist to appropriate data stores
- Distribution — Notify subscribers and update caches
Real-Time Processing
- Stream Processing — Kafka Streams for event handling
- Complex Event Processing — Pattern detection across events
- Real-Time Analytics — Live dashboards and metrics
Machine Learning
Models in Production
| Model | Purpose | Update Frequency |
|---|---|---|
| Valuation | Asset pricing | Daily |
| Fraud Detection | Risk scoring | Real-time |
| Category Classification | Auto-tagging | Weekly |
| Demand Forecasting | Inventory planning | Weekly |
ML Pipeline
Data Collection → Feature Engineering → Training → Validation → Deployment → Monitoring
Performance
SLAs
| Metric | Target | Actual |
|---|---|---|
| API Availability | 99.99% | 99.995% |
| P50 Latency | < 50ms | 32ms |
| P99 Latency | < 200ms | 145ms |
| Throughput | 10K req/s | 15K req/s |
Scalability
- Horizontal Scaling — Auto-scaling based on load
- Geographic Distribution — Multi-region deployment
- Edge Caching — CDN for static assets
Security
Infrastructure
- VPC isolation
- WAF protection
- DDoS mitigation
- Encryption at rest and in transit
Application
- Input validation
- SQL injection prevention
- XSS protection
- CSRF tokens
Compliance
- SOC 2 Type II
- PCI DSS (for payments)
- GDPR / CCPA