How duymk123/feature-flag-service works
This is a feature-flag management service. Administrators use the React console to create and edit flags, configure activation strategies, target customers, apply snapshots, and inspect audit logs. A runtime client can request flag evaluations through the Spring controller. The service layer coordinates evaluation and management operations, while repositories persist flags and audit history. The tree supports these module boundaries, but backend implementation excerpts were not provided, so only the principal layer relationships are shown.
Components 17
Admin Console
- Frontend Bootstrap
frontend/src/main.jsx - Admin Console
frontend/src/App.jsx - Customer Targeting
frontend/src/App.jsx - Strategy Editor
frontend/src/App.jsx - Audit Viewer
frontend/src/App.jsx
Spring API
- Flag Controller
src/main/java/com/example/featureflagservice/controller/FeatureFlagController.java - DTO Contracts
src/main/java/com/example/featureflagservice/dto - Security Config
src/main/java/com/example/featureflagservice/config/SecurityConfig.java
Flag Domain
- Feature Flag Service
src/main/java/com/example/featureflagservice/service/impl/FeatureFlagServiceImpl.java - Flag Model
src/main/java/com/example/featureflagservice/entity/FeatureFlag.java - Audit Model
src/main/java/com/example/featureflagservice/entity/FeatureFlagAudit.java
Persistence
- Flag Repository
src/main/java/com/example/featureflagservice/repository/FeatureFlagRepo.java - Audit Repository
src/main/java/com/example/featureflagservice/repository/FeatureFlagAuditRepo.java - Togglz Repository
src/main/java/com/example/featureflagservice/repository/JpaTogglzRepository.java - Flag Store
Data/schema-feature-flags.sql
Other components
- Administrator
- Runtime Client
Connections 15
- Frontend Bootstrap → Admin Console: renders
- Administrator → Admin Console: uses
- Runtime Client → Flag Controller: requests evaluation
- Admin Console → Flag Controller: calls API
- Customer Targeting → Flag Controller: calls API
- Strategy Editor → Flag Controller: calls API
- Audit Viewer → Flag Controller: calls API
- Flag Controller → DTO Contracts: exchanges DTOs
- Flag Controller → Feature Flag Service: invokes service
- Feature Flag Service → Flag Repository: reads flags
- Feature Flag Service → Audit Repository: writes audits
- Feature Flag Service → Togglz Repository: evaluates flags
- Flag Repository → Flag Store: persists flags
- Audit Repository → Flag Store: persists audits
- Togglz Repository → Flag Store: loads flags