Draft
Refactor monolithic app to microservices architecture#1
Conversation
Co-authored-by: Ritvik-km <116180586+Ritvik-km@users.noreply.github.com>
Co-authored-by: Ritvik-km <116180586+Ritvik-km@users.noreply.github.com>
Co-authored-by: Ritvik-km <116180586+Ritvik-km@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] [context]
- currently the implementation of the facial recognition based attendence system follows a monolithic implementation
- microservices architecture is considered more standard for any code implementations
[instructions]
- you need to trans...
Refactor monolithic app to microservices architecture
Sep 19, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR refactors the monolithic Biometric Attendance System from a single 881-line file into a clean microservices architecture with 5 focused services. The refactoring addresses the need for better code organization, maintainability, and adherence to modern software architecture principles.
Problem
The original implementation in
app_display.pywas a monolithic structure where all functionality (database operations, face recognition, admin management, attendance tracking, and GUI) was mixed together in a single file. This made the code:Solution
Transformed the monolithic architecture into 5 well-defined microservices:
🗄️
database_service.py(185 lines)👤
face_recognition_service.py(128 lines)👨💼
admin_service.py(107 lines)⏰
attendance_service.py(143 lines)🎯
main_app.py(408 lines)Key Benefits
Backward Compatibility
app_display.pypreserved as legacy version with clear migration notesCode Quality
Usage
To use the new microservices architecture:
To use the legacy monolithic version:
This refactoring transforms the codebase into a maintainable, extensible system while preserving all existing functionality and user experience.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.