You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/decisions.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,4 +6,20 @@ This document will outline the technical and product decisions taken along the c
6
6
7
7
### Usage of Cobra
8
8
9
-
Cobra CLI is a CLI helper that makes helps with the running of the service, so I opted to use it.
9
+
Cobra CLI is a CLI helper that makes helps with the running of the service, so I opted to use it.
10
+
11
+
### Usage of mocks
12
+
13
+
There are interfaces in case I wanted to mock requests, I saw no need for that since I can easily test the full flow without depending on external sources or flaky I/O. Therefore I decided not to use mocks.
14
+
15
+
### Support for log values
16
+
17
+
I opted to support multiple value types for the logs but I will only test for strings, otherwise it would take me much more time. I can also remove the support.
18
+
19
+
### Log processing response
20
+
21
+
For this iteration I can either find or not the key, I will not be processing errors, therefore the return is always the same.
22
+
23
+
### Concurrency
24
+
25
+
There are unused structs such as concurrent repo and concurrent service that use a synchronized map with sharding and go routines respectively, with the benchmarks result the decision was to keep the simpler versions.
0 commit comments