Multithreading
멀티 스레드 코드에서는 하나의 enforcer가 여러 스레드 간에 안전하게 공유될 수 있도록 Casbin의 **동기화 enforced(synchronized enforcer)**를 사용하세요: SyncedEnforcer 및 SyncedContextEnforcer (Go), enforcer_synced.cpp (C++).
동기화 enforced는 정책의 **자동 재로딩(auto-reload)**도 지원할 수 있습니다. StartAutoLoadPolicy()를 호출하여 정책 소스를 폴링하고 변경 시 다시 로드하며, StopAutoLoadPolicy()를 호출하여 중지합니다.
여러 인스턴스 실행, 캐싱 및 정책 동기화 유지에 대해서는 Production Deployment 문서를 참조하세요.
Comments are powered by giscus and GitHub Discussions. They load from giscus.app and GitHub only after you click the button below.