Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
D
distributed-calculator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tammam.alsoleman
distributed-calculator
Commits
484f833c
Commit
484f833c
authored
Nov 11, 2025
by
tammam.alsoleman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update README.md
parent
e6e65000
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
11 deletions
+40
-11
README.md
README.md
+38
-11
operation_log.txt
addition-service/operation_log.txt
+1
-0
operation_log.txt
multiplication-service/operation_log.txt
+1
-0
No files found.
README.md
View file @
484f833c
...
...
@@ -2,14 +2,14 @@
A distributed calculator system built with gRPC and multiple programming languages. This project demonstrates microservices architecture with three independent services communicating via gRPC.
##
📋
Prerequisites
## Prerequisites
-
**Python 3.11+**
(Client Gateway)
-
**Go 1.21+**
(Addition Service)
-
**Node.js 18+**
(Multiplication Service)
-
**Protocol Buffers Compiler (protoc)**
##
🚀
Quick Start
## Quick Start
### 1. Clone the repository
```
bash
...
...
@@ -64,25 +64,52 @@ cd distributed-calculator
-
**Input:**
```
Choose option: 1
Enter operation (add/multiply): add
Enter first number: 5
Enter first number: 2
Enter second number: 3
```
-
**Output 1:**
```
Distributed Calculator System
1. Perform calculations
2. Show operation history
3. Exit
Choose option: 1
Enter first number: 2
Enter second number: 3
Addition: 2 + 3 = 5
Multiplication: 2 × 3 = 6
```
-
**Input 2:**
```
Choose option: 2
```
-
**Output:**
```
Result: 8
Distributed Calculator System
1. Perform calculations
2. Show operation history
3. Exit
Choose option: 2
Fetching operation history...
Addition Operation History:
[Timestamp]: 2 + 3 = 5
Multiplication Operation History:
[Timestamp]: 2 × 3 = 6
```
-
**Input:**
-
**Input
3
:**
```
Choose option: 1
Enter operation (add/multiply): multiply
Enter first number: 4
Enter second number: 6
Choose option: 3
```
-
**Output:**
```
Result: 24
Choose option: 3
Goodbye!
```
addition-service/operation_log.txt
View file @
484f833c
[2025-11-12 00:52:05] ADDITION: 9 + 5 = 14
[2025-11-12 00:52:24] ADDITION: 5 + 4 = 9
[2025-11-12 00:52:34] ADDITION: -10 + 5 = -5
[2025-11-12 01:31:16] ADDITION: 2 + 3 = 5
multiplication-service/operation_log.txt
View file @
484f833c
[2025-11-11T21:52:06.101Z] MULTIPLICATION: 9 × 5 = 45
[2025-11-11T21:52:24.672Z] MULTIPLICATION: 5 × 4 = 20
[2025-11-11T21:52:34.994Z] MULTIPLICATION: -10 × 5 = -50
[2025-11-11T22:31:17.055Z] MULTIPLICATION: 2 × 3 = 6
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment