feat(system): implement leader election and priority queue#42
Open
xxwvlyx wants to merge 25 commits intomobile-cloud-computing:masterfrom
Open
feat(system): implement leader election and priority queue#42xxwvlyx wants to merge 25 commits intomobile-cloud-computing:masterfrom
xxwvlyx wants to merge 25 commits intomobile-cloud-computing:masterfrom
Conversation
…t added the call to fraud detection in orchestration yet # Conflicts: # fraud_detection/src/app.py # orchestrator/requirements.txt # orchestrator/src/app.py # utils/pb/fraud_detection/fraud_detection.proto # utils/pb/fraud_detection/fraud_detection_pb2.py # utils/pb/fraud_detection/fraud_detection_pb2.pyi # utils/pb/fraud_detection/fraud_detection_pb2_grpc.py
…uff from docker compose, added .idea to gitignore, added init.py files to utils to act as python modules, added app.py for suggestion service
finished suggestion service with API call to exterenal esrvice added logging
- Replaced immediate execution with event caching in initOrder - Added Vector Clock logic to track causal history - Implemented synchronization barrier to wait for both bookCheck and userCheck before processing - Added thread safety for concurrent gRPC requests - Added descriptive English comments
- Implemented Bully algorithm for leader election in executors. - Added priority queue for Express/Next-Day orders. - Fixed gRPC absolute import paths to resolve ModuleNotFoundError. - Fixed method names and Vector Clock sync in Transaction Verification. - Handled JSON parsing errors on frontend for rejected orders.
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.
All services are working. Implemented Bully algorithm (leader election) and priority queue. Bugs with frontend and gRPC are fixed.