Skip to content

Architecture

Technical architecture documentation for RecordPlatform.

Contents

Architecture Principles

1. Microservices with Dubbo

  • Services communicate via Dubbo Triple protocol (gRPC-compatible)
  • Nacos for service discovery and configuration
  • Clear separation: providers (storage, blockchain) and consumer (backend)

2. Distributed Transaction

  • Saga pattern for cross-service consistency
  • Outbox pattern for reliable event publishing
  • Automatic compensation with exponential backoff

3. High Availability

  • Fault domain isolation (A/B active + STANDBY pool)
  • Consistent hashing for data distribution
  • Automatic failover and rebalancing

4. Security by Design

  • JWT authentication with HMAC512
  • ID obfuscation (AES-256-CTR + HMAC)
  • RBAC with resource ownership verification
  • Multi-tenant isolation

Quick Reference

ComponentTechnologyPurpose
Service CommunicationDubbo TripleHigh-performance RPC
Service DiscoveryNacosRegistration, config
Distributed TransactionSaga + OutboxCross-service consistency
StorageS3-compatibleObject storage
BlockchainFISCO BCOSImmutable attestation
CachingCaffeine + RedisMulti-level caching
ResilienceResilience4jCircuit breaker, retry

Released under the Apache 2.0 License.