Skip to main content

8 posts tagged with "architecture"

View All Tags

Mercury Instance Architecture: Strategic Refinement of W/R/ABH System

· 3 min read
Max Kaido
Architect

TL;DR: The Strategic Breakthrough

After deep architectural analysis, we've discovered the true competitive advantage of Mercury's instance system:

  • W Instance: Live trading with conservative risk management
  • R Instance: Demo trading (Bybit testnet) mirroring W constraints
  • ABH Instance: Shadow portfolio as unrestricted market intelligence engine

Key Insight: Shadow portfolio's value isn't simulation—it's complete data capture for strategy optimization that demo trading cannot provide.

Eliminating Type Safety Bypasses: The Global Optional Nested Structure Problem

· 4 min read
Max Kaido
Architect

The Problem: Repository-Wide Type Safety Nightmares

This is a monorepo-wide architectural problem, not specific to Mercury. Across multiple domains, we've evolved complex optional nested structures that force developers to bypass TypeScript's type safety. The Mercury tournament configurations are just one example of this systemic issue.

КРИТИЧЕСКИ ВАЖНО: ABH Архитектура - 24 Турнира, НЕ 8!

· 2 min read
Max Kaido
Architect

ТВАРЬ, ЗАПОМНИ НАВСЕГДА:

ABH Instance = 24 турнира в день, НЕ 8!

🔥 ОСНОВНАЯ АРХИТЕКТУРА (НЕ ЕБИСЬ С ПОНИМАНИЕМ!)

ABH инстанс запускает ВСЕ 3 варианта (A, B, H) для КАЖДОГО турнира!

8 базовых турниров × 3 варианта = 24 турнира в день!

Mercury Redesign: Clean Architecture Implementation

· 6 min read
Max Kaido
Architect

After extensive discussion and implementation, we've achieved a clean, minimal architecture that separates concerns properly and avoids over-engineering.

Core Architecture Principles

  1. Clear Separation: Variants (experiment tracking) vs Instances (deployment)
  2. Single Responsibility: Config = strategy, Instance = deployment, Scheduler = timing
  3. Type Safety: Strong enums prevent runtime errors
  4. No Database Pollution: Infrastructure concerns stay out of business logic
  5. Config-Over-Env: ABH variants determined by time + TypeScript config, NEVER environment variables