This skill provides a standardized framework for handling long-running backend operations, such as batch data processing, full table scans, or complex third-party API calls. It prevents common architectural pitfalls like 504 gateway timeouts, duplicate task triggers, and memory leaks by utilizing a trigger-and-poll architecture. The skill includes comprehensive guidance on thread-safe state management, TTL-based cache eviction, and context propagation (like TenantContext or SecurityContext) in multi-threaded environments, ensuring both backend stability and a seamless user experience.
주요 기능
01Frontend UX and polling guidelines for consistent loading states
02ThreadLocal context propagation (Tenant, Security, MDC) for async threads
03Standardized triggerAsync() and getStatus() state machine templates
04TTL and LRU strategies to prevent memory leaks in state maps
05Concurrency protection to block duplicate task execution from UI retries
06777 GitHub stars
사용 사례
01Replacing synchronous 'loading spinners' with robust background task status tracking
02Batch processing datasets exceeding 1,000 records that trigger gateway timeouts
03Aggregating slow remote API calls that would otherwise cause 504 errors