Tier 2 — Hikari + RestTemplate timeouts + Stripe SDK + Redis cache

Performancekamolos
Shipped
28 مايو 2026 في 11:58 م UTC
صاحب البلاغ
Kamo
Commit
89cbd1e

- RestClientConfig: single shared RestTemplate bean with 5s connect / 30s read timeouts. MediaServiceClient / NotificationDispatchService / OfacSanctionsService / MlaCheckService inject this instead of constructing per-class clients with no timeout — previous behavior would deadlock a thread per slow downstream. - StripeConfig.@PostConstruct: setConnectTimeout(5000) + setReadTimeout(30000) + setMaxNetworkRetries(2). Also fails fast if the prod profile is loaded with a non-live (sk_test_*) key, refusing to start. - Hikari pool tuned in configmap: max-pool=20 / min-idle=5 / connect-timeout=5s / idle-timeout=10m / max-lifetime=30m / leak-detection=60s. - spring-boot-starter-cache + @EnableCaching on the application. - LoanProductService.get cached on Redis (TTL 5min); create/update/delete evict. Hot path for /api/los/products/{uid} reads, called from offer create + acceptance + statement generation.

جميع التغييرات

مثل ما ترى الشحن؟?

كل واحد من هذه تحديثات الأراضي في مكان عملك تلقائيا. ابدأوا بالمجان وشاهدوها تنمو بعد أسبوع.

ابدأوا حراً للأبدخصخصة الفيو