Skip to content

feat(system): implement leader election and priority queue#42

Open
xxwvlyx wants to merge 25 commits intomobile-cloud-computing:masterfrom
oskarasd123:vlad-test-branch
Open

feat(system): implement leader election and priority queue#42
xxwvlyx wants to merge 25 commits intomobile-cloud-computing:masterfrom
oskarasd123:vlad-test-branch

Conversation

@xxwvlyx
Copy link
Copy Markdown

@xxwvlyx xxwvlyx commented Apr 10, 2026

All services are working. Implemented Bully algorithm (leader election) and priority queue. Bugs with frontend and gRPC are fixed.

oskarasd123 and others added 25 commits February 20, 2026 13:36
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants